| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Problem with hiding prices on variants only | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I've made a number of modifications to my client's cart based on what I've read here - I've edited customer/main/product.tpl and products.tpl so that prices will not show unless the user is logged in at the 'Wholesale' level.
This pricing scheme is *mostly* working. It's working on all the category pages, and it's hiding the 'buy now' button on the product page, but the one problem is the the price is being hidden on all product pages *except* the ones with variants. On those products I can see my 'you must be logged in to view prices' message flash for a fraction of a second and then the price appears. I tried redefining wholesale prices for my variants, and that didn't help. I think they're set up correctly - I checked each box for each variant and assigned them to the 'Wholesale' membership level in the section at the bottom of the variants admin page, 'Modify wholesale prices for selected variants.' Here's my code from customer/main/product.tpl that pertains to this, the 'paragraph' in the middle: PHP Code:
Again, this is working perfectly for everything but variants. Do I have this set up incorrectly? if not, how do I work it so my products with variants abide by the wholesale price rule? |
|||||||
#2
|
|||||||
|
|||||||
![]() Hi Kanji,
Yes, the wholesale variants is a bit confusing - it is not tied to membership level, but rather it gives you the ability to offer discounted pricing on multiple items. The file you want to look at to hide the product variants based on your criteria is in /skin1/modules/Product_Options/product_variants.tpl |
|||||||
#3
|
|||||||
|
|||||||
![]() I'm looking at this file (/skin1/modules/Product_Options/product_variants.tpl) but I don't understand where in this template I'm supposed to make the modification to *not* show prices unless the user is logged in at the wholesale level. Isn't this the page from the Admin section?
If I can't get this to work, is the alternative to change my variants to regular products? That's going to take a lot of time. |
|||||||
#4
|
|||||||
|
|||||||
![]() I'm sorry Kanji,
I may have given you erroneous info, I'm in a bit of a rush right now but will come back to this thread if someone hasn't already answered your question properly. |
|||||||
#5
|
|||||||
|
|||||||
![]() Anyone? This is kind of a big deal for me... is there another way to assign options to an item without using variants? Can I assign colors or styles as regular options with price-changing but just leave the price change at + or - 0.00?
|
|||||||
#6
|
|||||||||
|
|||||||||
![]() Variant Prices are loaded through JavaScript using the "product_price" id. Try the code as it is below. I did not test this, and it may cause a Javascript error, in which case I believe you will need to edit the skin1/modules/Product_Options/func.js file.
Code:
|
|||||||||
#7
|
|||||||
|
|||||||
![]() That did it - thank you so much!
|
|||||||
|
|||
X-Cart forums © 2001-2020
|