Add to cart legacy > Text disappeared?

  • Posts: 37
  • Thank you received: 4
  • Hikashop Business
6 years 1 month ago #288744

-- HikaShop version -- : 3.3.0
-- Joomla version -- : 3.8.5
-- PHP version -- : 7.0

Dear Hikashop,

For a specific reason, i use the end date as an restriction for some products.
So, they can't be bought, but they are displayed.

First, there was text showing in table category overview products, on the place where normally is "add to cart' button is.

After the add to cart legacy the text isnt showing anymore. It is showed on the article page (hikashop_product_sale_end). But not on table category,


For example:
Here is the text shown (Dit artikel kan alleen in een werkende set gehuurd worden)
www.designed2rock.nl/verhuur-beeld-licht...ting-controller.html

And here it isnt shown
www.designed2rock.nl/verhuur-beeld-licht...dmx/controllers.html

When i put legacy on, the text is shown again.

Can you help me out?

Thanks

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

  • Posts: 4519
  • Thank you received: 611
  • MODERATOR
6 years 1 month ago #288780

Hello,

The point is that you have some customization that are only on the legacy Views, with new HikaShop features we have to create new view that are show only if you don't use the legacy mode.

I can only advice you to move your needed customization to new HikaShop views.
Hope this will help you to move forward.

Regards

Last edit: 6 years 1 month ago by Philip.

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

  • Posts: 37
  • Thank you received: 4
  • Hikashop Business
6 years 1 month ago #288858

Hi Philip,

Thanks for your reply,


I 'm afraid i dont understand what you are trying to say.

Yes, I see different views in hikashop backend, but how do I know what to edit exactly?

The text was placed when the end date was over for a product.
So i choose "product", "my template" and then???

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
6 years 1 month ago #288866

Hi,

What Philip meant is that with the new add to cart system these messages are not displayed on the listings.
If you want they with it, you would have to edit the file "add_to_cart_ajax" via the menu Display>views and add such code:

if($end_date > 0 && $end_date < $now) {
?>
<span class="hikashop_product_sale_end"><?php
	echo JText::_('ITEM_NOT_SOLD_ANYMORE');
?></span>
<?php
}

// @TODO - Pre-order
//
if($start_date > 0 && $start_date > $now) {
?>
<span class="hikashop_product_sale_start"><?php
	echo JText::sprintf('ITEM_SOLD_ON_DATE', hikashop_getDate($start_date, $this->params->get('date_format', '%d %B %Y')));
?></span>
<?php
}
after the line:
$extra_div_name = $this->params->get('extra_div_name', '');

The following user(s) said Thank You: plaag666

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

  • Posts: 37
  • Thank you received: 4
  • Hikashop Business
6 years 1 month ago #289152

That worked Nicolas, thank you.


Although i see advantages in the new system, it is hard to make such adjustments if you don't have any php knowledge.
Cause I think this is a basic function.

Just my 2 cents, as a positive feedback!

Last edit: 6 years 1 month ago by plaag666.
The following user(s) said Thank You: Philip

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

Time to create page: 0.063 seconds
Powered by Kunena Forum