- Posts: 9
- Thank you received: 0
Changing Display of Free Item With Characteristics
11 years 10 months ago - 11 years 10 months ago #181505
by DSCulp
Changing Display of Free Item With Characteristics was created by DSCulp
-- HikaShop version -- : 2.3.4
-- Joomla version -- : 2.5.27
-- PHP version -- : 5.3.13
-- Browser(s) name and version -- : Firefox 33.1
-- Error-message(debug-mod must be tuned on) -- : None
I have been trying to set up a Gift Certificate on my website and would like to adjust the way it displays in the Products list.
Currently, the item is listed without a price (the actual card is free) but has several Variants that allow the customer to choose the value they would like and one that is listed as Custom Amount. The idea is, that if the customer decides on a preset amount then they will be charged that amount and the order can be processed automatically. If they decide on the Custom Amount, there is no charge made but the order is created and can be followed up for more details and payment.
Ideally, I would like a popup or something where they could enter the amount they wish and have all orders automated, but that is far beyond my capabilities!!
It all works great, but the problem is, in the Products list, the card displays with the lowest priced Variant, even though I have chosen Custom Amount (which has no price assigned) as the default value, and the base product (the card itself) is Free. (see example screenshots)
Is there any way to have the price completely removed if there are variants with other prices?? This would make the most sense since they have to click into the Product listing to customize it anyways.
-- Joomla version -- : 2.5.27
-- PHP version -- : 5.3.13
-- Browser(s) name and version -- : Firefox 33.1
-- Error-message(debug-mod must be tuned on) -- : None
I have been trying to set up a Gift Certificate on my website and would like to adjust the way it displays in the Products list.
Currently, the item is listed without a price (the actual card is free) but has several Variants that allow the customer to choose the value they would like and one that is listed as Custom Amount. The idea is, that if the customer decides on a preset amount then they will be charged that amount and the order can be processed automatically. If they decide on the Custom Amount, there is no charge made but the order is created and can be followed up for more details and payment.
Ideally, I would like a popup or something where they could enter the amount they wish and have all orders automated, but that is far beyond my capabilities!!
It all works great, but the problem is, in the Products list, the card displays with the lowest priced Variant, even though I have chosen Custom Amount (which has no price assigned) as the default value, and the base product (the card itself) is Free. (see example screenshots)
Is there any way to have the price completely removed if there are variants with other prices?? This would make the most sense since they have to click into the Product listing to customize it anyways.
Last edit: 11 years 10 months ago by DSCulp. Reason: Minor changes to structure and wording.
Please Log in or Create an account to join the conversation.
11 years 10 months ago #181543
by nicolas
Replied by nicolas on topic Changing Display of Free Item With Characteristics
There is no option to hide the price on the listing based on whether the product has variants.
Edit the file "listing_price" of the view "product" for your frontend template via the menu Display>Views and add that line at the beginning and that should do it:
<?php if(JRequest::getCmd('layout') != 'show' && !empty($this->row->has_options)) return; ?>
Edit the file "listing_price" of the view "product" for your frontend template via the menu Display>Views and add that line at the beginning and that should do it:
<?php if(JRequest::getCmd('layout') != 'show' && !empty($this->row->has_options)) return; ?>
The following user(s) said Thank You: DSCulp
Please Log in or Create an account to join the conversation.
11 years 10 months ago #181711
by DSCulp
Replied by DSCulp on topic Changing Display of Free Item With Characteristics
Thank you...that worked beautifully!!!
Please Log in or Create an account to join the conversation.
Time to create page: 0.143 seconds