| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Changing variant does not update price | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Changing variant does not update price
Hi All,
Variant A costs $59.99 Variant B costs $99.99 It is option A by default, and when a customer chooses option B the variant image and SKU# both update, but the price does not. We have heavily modified our product.tpl page which I think might have been the problem, but I'm having a hard time locating the code which might control this. Can anyone give me a hint? thanks!
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World - Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com) X-Cart Version 4.1.10 |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Changing variant does not update price
Since you said product variants you can give a look at the file snik1/modules/product_options/customer_options.tpl.This is the place where the changes due to variants takes place
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: Changing variant does not update price
Here are a few more hints:
The sku, image, & price changes are done with javascript code - also partially controlled by several of the files in skin1/modules/Product_Options - so check for recent changes. check_options.tpl is building the array with the javascript variables which includes the prices, so this should be getting the prices of the variants from the database. Make sure there are no javascript errors - easiest to verify with firefox + firebug, or, MSIE reports javascript errors in a pop up or a yellow warning at the bottom of the browser. Also - You can view the source for the page for the javascript section that begins with: "variants array:" If you look at the variants array the first position is the price. If you do not see the correct prices there for your variants, it means it is not picking it up from the database correctly. If you see the correct price there, but it does not display on the page, something probably has gone wrong with the javascript . Last consideration - if you happen to update the prices outside of XCART administration or csv import - for example, by directly modifying the database, or using some other means - then maybe you need to force cache generation? go to Summary->Tools->Force cache generation
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
#4
|
|||||||
|
|||||||
Re: Changing variant does not update price
See this thread if you are using something like Lytebox or any fancy javascript library. There are incompatibilities with the X-Cart variant change javascript.
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
#5
|
|||||||
|
|||||||
Re: Changing variant does not update price
Solution found for this bug.
The error is in skin1/customer/main/product.tpl. Replace: <td class="ProductPriceConverting" valign="top">{$lng.lbl_price}:</td> <td valign="top"> By: <td class="ProductPriceConverting" valign="top">{$lng.lbl_price}:</td> <td valign="top" id="product_price"> Quote:
__________________
--------------------------- X-cart v4.0.9 Unix |
|||||||
|
|||
X-Cart forums © 2001-2020
|