Some Displays questions

  • Posts: 20
  • Thank you received: 3
4 years 3 weeks ago #329687

Hello, I have 4 questions for displaying properly some content :
1) on this list of product, i want to display first the name of the product and under the price, all centered : simplecommewebtest.com/DinEtDom/index.php/collection/filles , how can i make that please?
2) on this product page : simplecommewebtest.com/DinEtDom/hikashop.../1-la-robe-champetre the description is shown 2 times. The first time (in raw html) i don't want to show it, only the description that is currently under it but with all the rich text. I can't find why it it shown twice...
3) on this page i have put in the description a plugin ({modal url="index.php/guides-des-tailles"}guide des tailles{/modal}) to display a size guide in pop-up but it doesn't appear on the product description. Is there any thing to do ?
4) Where can i put a Title on the related product under the description?

Thank you very much for your help !!!

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

  • Posts: 83404
  • Thank you received: 13497
  • MODERATOR
4 years 3 weeks ago #329691

Hi,

1. By default the price and the name of the products are already displayed centered but the name is below the price.
On your website, I can see custom CSS added to the file simplecommewebtest.com/DinEtDom/templates/xprime/css/custom.css to move the price and names on the same row.
So first, you would have to remove that extra CSS from there:
i.imgur.com/Me5FUkS.png
i.imgur.com/lnvw9u7.png
You can see the CSS code I deactivated to get that.
Then, you can edit the file product / listing_img_title.php via the menu Display>Views and swap the price area and the name area as per the instructions here:
www.hikashop.com/support/documentation/1...-display.html#layout

2. This looks like some custom coding on the view file of the layout used to display that product page. You would have to activate the "Display view files" setting as explained in the link given in my answer to point 1 to check with view file is used for the product layout.
Then, you can edit it via the menu Display>Views and search for the description display. It's likely to be product / show_default.php but it could be another one as it depends on how the "layout on product page" setting is configured in the product, in the category of the product and in the HikaShop configuration.

3. It actually appears in the description when you change the "taille" characteristic to "18-24 mois".
So either you've added that text only to the description of that one variant and not to the other variant, or the issue comes from the way the modal plugin process the tags and how the variant selector works.
So check the description of your variants. If you have the same thing on both (nothing at all, or the tag for both), then it's likely a problem between the way the modal plugin process the tags and how the variant selector works. In that case, edit the file product / show.php and remove the code:

<div id="hikashop_product_description_<?php echo $variant_name; ?>" style="display:none;"><?php
			echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$variant->product_description));
		?></div>
and it should fix the problem.

4. Edit the related products module via the Joomla modules manager and activate the title display setting.

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

  • Posts: 20
  • Thank you received: 3
4 years 3 weeks ago #329791

Thanks so much Nicolas, everything worked great... Except the modal...
When i insert the code, the shortcode disapear in both variant. I put the short code in main and the two variants but it shows only in the second variant... Very weird... Do you have another Idear?

Thanks a lot !!

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

  • Posts: 83404
  • Thank you received: 13497
  • MODERATOR
4 years 3 weeks ago #329801

Hi,

Probably a problem with the way the plugin replaces the short code on the page.
In that case, make sure that the description is empty for both variants and only have the description with the short code in the main product. Combined with the code modification of product / show.php that I proposed in my previous message, it should then work fine.

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

  • Posts: 20
  • Thank you received: 3
4 years 3 weeks ago #329957

Thank you !!!

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

Time to create page: 0.062 seconds
Powered by Kunena Forum