Chachita

Members
  • Content count

    19
  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About Chachita

Profile Information

  • Real Name
    chacha
  1. @@mrembedded, i'm soooo not going to pretend i understand anything you just said! lol. i tried before to ask in the forums if the creator of this mod could at least clarify which add-on it is a mod for, but no luck. my suspicion is that this is not built for the nivo slider. hopefully someone with a greater understanding of this could help us out!
  2. @@mrembedded, if i follow you correctly, you placed the banner images for each language within the root/includes/[language] directory for each language? right now, i have them all set up in the same folder in root/images/banners, but would make sense to put in each language folder. i'll give that try and see if it changes anything. if not, then i agree, it must be the includes/functions/banner.php file that needs tweaking. i too am using the nivo slider, and i've tried dissecting the code with my own limited knowledge of php, but no luck. although, i also wonder if its the actual backend set-up for the banners. could it be the banner group assigned? maybe if each language had its own group? i dont understand how banner groups work, so i havent attempted that yet. have to admit, im a bit scared to.
  3. anyone? i'm soooo desperate at this point. i've had to deactivate all the spanish versions of the banners, and hate that that side shows all the english banners at the moment. would reaaaaalllyyy appreciate any help anyone can give. even if someone can just point out WHICH banner add-on this is a mod for, would be very helpful.
  4. I desperately need help here folks. I have two languages in my store, spanish and english. I installed the Banner Multi Language MOD contribution (this one: http://addons.oscommerce.com/info/8083), to have different banners for the different languages, but they just aren't matching up properly. The different banners show up randomly whenever you refresh the page, however, they do show up in the correct position for the specific banner on the page (both nivo slider and content banners on the bottom of the page). I tried the amendment added to the contribution, and no luck getting them sorted correctly. I'm not sure if it has anything to do with the banner groups I've assigned, but they way I have them set up are: Banners Groups Banner Language: Small #1 (in english) banner1 English Small #1 (in spanish) banner1 Espanol Small #2 (in english) banner2 English Small #3 (in spanish) banner2 Espanol Small #3 (in english) banner3 English Small #3 (in spanish) banner3 Espanol Nivo #1 (in english) banner11 English Nivo #1 (in spanish) banner11 Espanol Nivo #2 (in english) banner12 English Nivo #2 (in spanish) banner12 Espanol Nivo #3 (in english) banner13 English Nivo #3 (in spanish) banner13 Espanol Is there anyone that can help me figure this out? Or if anyone has a better contribution that I should look into, I would greatly appreciate it. I am running osc 2.3.1.
  5. @@belilan, @@yohan_kib, were you ever able to find a solution? I've tried to sort it out, but to no avail. My only conclusion is that this is a mod for a banner rotator add-on out there and the original contributor just forgot to mention? I assumed MOD was for module, but it would make sense if it's a modification of another add-on, like the jQuery Banner Rotator contribution. Either way, would be super helpful if someone can shed some light. (Fingers crossed @@OSC-Sevilla sees this!) For the record, I've uninstalled and reinstalled this as-is 3 times so far, even with the language from tables update submitted by @@mpps. No luck at all. Chacha
  6. I know this is an old thread, but i am actually still having the same issue as @@rwest. I don't have multi vendor shipping installed. was anyone ever able to figure this out?
  7. Below are the instructions for the code that's modified: 3. Open catalog/includes/functions/general.php for editing 4. On or near line 305 find the following text: //// // Returns the tax rate for a zone / class // TABLES: tax_rates, zones_to_geo_zones function tep_get_tax_rate($class_id, $country_id = -1, $zone_id = -1) { global $customer_zone_id, $customer_country_id; 5. Right AFTER 'global $customer_zone_id, $customer_country_id;' insert the following on a new line: //CHANGES BY <YOUR NAME> TO ACCOUNT FOR CITY, COUNTY, AND STATE TAX RATE //echo "send to = ".$_SESSION['sendto']."<br>"; //debugging$customer_zip_query = tep_db_query("select entry_postcode, entry_zone_id from " . TABLE_ADDRESS_BOOK . " where address_book_id = '" . $_SESSION['sendto'] . "'"); $address_query = tep_db_fetch_array($customer_zip_query);$cust_zip_code = $address_query['entry_postcode']; $cust_entry_zone_id = $address_query['entry_zone_id']; //BEGIN THE CUSTOM CHANGES FOR ZIPCODE AND ZONE LOGIC if ( ($cust_zip_code == '81230' || $cust_zip_code == '81231') && ($cust_entry_zone_id == '13') ) //ZIPCODE IS FOR <YOUR CITY>, AND ZONE <13> IS CO { return 7.2500; //THIS IS THE STATE + COUNTY + CITY TAX RATE + CITY RTA TAX.... CHANGE THIS TO YOUR OWN } //THIS NEXT PART SHOWS HOW TO ADD AN ADDITIONAL CONDITION TO YOUR TAX CODE LOGIC //IF YOU DON'T NEED THIS JUST DELETE THE 'ELSE IF' AND EVERYTHING BETWEEN THE '{ }'S INCLUDING THE '{ }'S BELOW THE 'ELSE IF' else if ( ($cust_zip_code == '81210' || $cust_zip_code == '81220' || $cust_zip_code == '81224' || $cust_zip_code == '81225' || $cust_zip_code == '81239' || $cust_zip_code == '81243' || $cust_zip_code == '81247') && ($cust_entry_zone_id == '13') ) //ZIPCODE IS FOR <YOUR COUNTY>, AND ZONE <13> IS CO { return 4.5000; //THIS IS THE STATE + COUNTY + COUNTY RTA TAX.... CHANGE THIS TO YOUR OWN } //AND THIS IS YET ANOTHER CONDITION.... NOTICE WE JUST KEEP ADDING 'ELSE IF' STATEMENTS else if ( ($cust_zip_code == '81237' || $cust_zip_code == '81241' || $cust_zip_code == '81434' || $cust_zip_code == '81623') && ($cust_entry_zone_id == '13') ) //ZIPCODE IS FOR <YOUR COUNTY>, AND ZONE <13> IS CO { return 3.9000; //THIS IS THE STATE + COUNTY TAX.... CHANGE THIS TO YOUR OWN } //OK ONE LAST EXAMPLE, BUT W/OUT THE $cust_entry_zone_id CONDITION IN CASE SOME ONE NEEDS IT THAT WAY //else if ($cust_zip_code == '67890') //{ //return 1.1111; //} //END OF CHANGES BY <YOUR NAME> 6. Now on or near line 347 find the following text: //// // Return the tax description for a zone / class // TABLES: tax_rates; function tep_get_tax_description($class_id, $country_id, $zone_id) { 7. Right AFTER 'function tep_get_tax_description($class_id, $country_id, $zone_id) {' insert the following on a new line: //CHANGES BY <YOUR NAME> TO ACCOUNT FOR CITY, COUNTY, AND STATE TAX RATE //echo "send to = ".$_SESSION['sendto']."<br>";$customer_zip_query = tep_db_query("select entry_postcode, entry_zone_id from " . TABLE_ADDRESS_BOOK . " where address_book_id = '" . $_SESSION['sendto'] . "'"); $address_query = tep_db_fetch_array($customer_zip_query);$cust_zip_code = $address_query['entry_postcode']; $cust_entry_zone_id = $address_query['entry_zone_id']; if ( ($cust_zip_code == '81230' || $cust_zip_code == '81231') && ($cust_entry_zone_id == '13') ) //ZIPCODE IS FOR <YOUR CITY>, AND ZONE <13> IS CO { return 'Tax: CO 2.9%, County 1.0%, City 3.0%, City RTA 0.35%'; //THIS IS THE STATE + COUNTY + CITY TAX + CITY RTA RATE DESC.... CHANGE THIS TO YOUR OWN } //OK HERE WE GO, WE ARE GOING TO USE THE SAME 'ELSE IF' LOGIC AS ABOVE (LINES 328-349) //AGAIN, IF YOU DON'T NEED, DELETE THE 'ELSE IF' AND EVERYTHING BETWEEN THE '{ }'S INCLUDING THE '{ }'S BELOW THE 'ELSE IF' else if ( ($cust_zip_code == '81210' || $cust_zip_code == '81220' || $cust_zip_code == '81224' || $cust_zip_code == '81225' || $cust_zip_code == '81239' || $cust_zip_code == '81243' || $cust_zip_code == '81247') && ($cust_entry_zone_id == '13') ) //ZIPCODE IS FOR <YOUR CITY>, AND ZONE <13> IS CO { return 'Tax: CO 2.9%, County 1.0%, County RTA 0.60%'; //THIS IS THE STATE + COUNTY + COUNTY RTA RATE DESC.... CHANGE THIS TO YOUR OWN } else if ( ($cust_zip_code == '81237' || $cust_zip_code == '81241' || $cust_zip_code == '81434' || $cust_zip_code == '81623') && ($cust_entry_zone_id == '13') ) //ZIPCODE IS FOR <YOUR CITY>, AND ZONE <13> IS CO { return 'Tax: CO 2.9%, County 1.0%'; //THIS IS THE STATE + COUNTY DESC.... CHANGE THIS TO YOUR OWN } //OK ONE LAST EXAMPLE, BUT W/OUT THE $cust_entry_zone_id CONDITION IN CASE SOME ONE NEEDS IT THAT WAY //else if ($cust_zip_code == '67890') //{ //return 'QQ 1.0000% Tax, Sample County 0.1111% Tax, and Development Cty. 0.0% Tax'; //THIS IS THE STATE + COUNTY + CITY TAX RATE DESC.... CHANGE THIS TO YOUR OWN //} //END OF CHANGES BY <YOUR NAME> 8. Save the modified catalog/includes/functions/general.php 9. Open catalog/checkout_shipping.php for editing 10. On or near line 36 fine the following text: if ($check_address['total'] != '1') { $sendto = $customer_default_address_id; 11, Right AFTER '$sendto = $customer_default_address_id;' insert the following on a new line: $_SESSION['sendto'] = $sendto; 12. Save the modified catalog/checkout_shipping.php
  8. Hi everyone, hoping someone can help me figure this out. I recently installed the County Sales Tax by Zip Code mod (http://addons.oscommerce.com/info/1856) found in the contributions section, into my 2.3.1 store. Everything was easy to follow and I was able to update the zip codes to reflect the NY zip codes that I need with no problem. The mod, for what it's purpose is (to apply different tax rate to different zip codes), works great. There is one thing that I need help figuring out, and I'm hoping someone more knowledgeable in PHP can point me in the right direction. My store sells apparel, and in NY State, the current laws require you to charge tax only on clothing that's over $110. Any items under that amount are tax-free. From what I understand (and I could be wrong) this modification seems to apply taxes to ALL purchases that are being delivered to a NY address. I want to figure out the best way to tweak it so that it only charges tax on items that are over $110. I know that you can assign tax classes to products, which will tell OSC what tax rate to apply to each item at checkout, but even when using different classes, they are ALL still being charged tax. If I wanted to add a condition to this coding (something like "IF item price is over $110", or "IF tax class is XYZ"), how would I write it, and where would I be able to insert it? Or if you know a better way to do this, please let me know. I've looked at other tax by zip contributions available, and after trying, this one was the best one for my needs, which was to charge different taxes to different zip codes in NY. Any help would be much appreciated! Chacha
  9. I'm having the same problem. I have two languages, spanish and english. I installed it as well, banners show up, but sometimes they match the right language and sometimes they don't. I saw an amendment was made to the contribution to allow "languages from TABLE LANGUAGES", but aside from updating coding, no other information was written, so I have no idea if this (TABLE LANGUAGES) is the problem that I'm having. Can anyone please explain? Or if you've figured it out, can you please help?