Changing Display of Free Item With Characteristics

  • Posts: 9
  • Thank you received: 0
10 years 9 months ago #181505

-- 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.

Attachments:
Last edit: 10 years 9 months ago by DSCulp. Reason: Minor changes to structure and wording.

Please Log in or Create an account to join the conversation.

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 9 months ago #181543

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; ?>

The following user(s) said Thank You: DSCulp

Please Log in or Create an account to join the conversation.

  • Posts: 9
  • Thank you received: 0
10 years 9 months ago #181711

Thank you...that worked beautifully!!! :-)

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum