- Posts: 122
- Thank you received: 0
Display in two colouns
-- HikaShop version -- : HikaShop Essential 2.3.0
-- Joomla version -- : 3.2
-- PHP version -- : 5.4
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : Error_message
Which file do I edit to display the description and price on the right hand side of the image?
Also, how do I reduce the size of the price display to a sensible size?
Thanks,
Mike
Please Log in or Create an account to join the conversation.
You have to edit the view "product / show_default" via the menu Display > Views.
Regarding the price you can use some css properties.
Here is a tutorial to customize the layout:
www.hikashop.com/support/support/documen...ize-the-display.html
Please Log in or Create an account to join the conversation.
Just checking that I am on the correct path here.
I select Display / Viewa and then filter on Front End / NewLifestyle template.then click on Prodict / Listing and am in the file product / listing.php ?
Is this correct?
Thanks,
Mike
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
As Xavier, said you'll have to :Just checking that I am on the correct path here.
I select Display / Viewa and then filter on Front End / NewLifestyle template.then click on Prodict / Listing and am in the file product / listing.php ?
Is this correct?
- Go to the page "Hikashop->Display->Views"
- Edit the code of the "show_default" file of the "product" view of your front-end template
Please Log in or Create an account to join the conversation.
Are you sure that this is the correct file to edit. As a test I changed for the title the code to
<span id="hikashop_product_name_main" class="hikashop_product_name_main">
<?php
if (hikashop_getCID('product_id')!=$this->element->product_id && isset ($this->element->main->product_name))
echo "Hello World";
else
echo "Hello World";
?>
But as you can see at optimizedpanama.com/starsupply/index.php...product/8-ansao-0004 the title of the product is still displaying (twice).
Also, as I am not a css expert, what code would I add where to make the price display look reasonable.
Thanks,
Mike
Please Log in or Create an account to join the conversation.
The product name is not displayed twice.
The product name and the product code are displayed. But in your case, both are identical.
You have to deactivate the display of the product code in the HikaShop configuration ; unless you want to display it.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Thanks for clearing up that issue,
My real problem with this page is the layout - I want the description and price to be shown in a second column to the right hand side of the image.
I was instructed to edit the view "product / show_default" via the menu Display > Views. but I changed echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$this->element->product_description)); to echo "Hello World"; but the description still appears at optimizedpanama.com/starsupply/index.php...product/8-ansao-0004
So I want to know if I am editing the correct file as my changes are not working?
Thanks,
Mike
Please Log in or Create an account to join the conversation.
You are not using the default product page layout but the tabular product page layout (option "layout of product page" of the configuration/categories/products), so it's actually the show_tabular view file that you want to edit.
Please Log in or Create an account to join the conversation.
Well that certainly explains a lot!
I have now added echo "Hello World"; to the top, left and right sections but as you can see at :
optimizedpanama.com/starsupply/index.php...product/8-ansao-0004
the tabular part is not working correctly as the the right part is displayed underneath the left part.
How do we correct this issue?
Thanks,
Mike
Actually, the problem was caused by the Price Display size being 3EM in the template
Please Log in or Create an account to join the conversation.
Yes generally it's a css issue, you have to force the width of the left and right part with some css rules.
Please Log in or Create an account to join the conversation.