- Posts: 24
- Thank you received: 0
Changing the format of the product page
14 years 3 months ago #52836
by joe1255
Changing the format of the product page was created by joe1255
Please go here...
leslaundry.com/index.php/parts/adc/produ...ssy-w-rot-sen-magnet
"1 3/8" PB BEAR ASSY W/ROT SEN MAGNET 880779 880779"
Notice that it lists the product name and after that has the product name twice.
How can I show the product name only once, or none?
Please look at the attachment and let me know if it is possible to format the parts page this way...with the part number below the description.
Another question: Please go here leslaundry.com/index.php/parts/adc an notice there is no space between the discount and the price...please advise. Thanks
leslaundry.com/index.php/parts/adc/produ...ssy-w-rot-sen-magnet
"1 3/8" PB BEAR ASSY W/ROT SEN MAGNET 880779 880779"
Notice that it lists the product name and after that has the product name twice.
How can I show the product name only once, or none?
Please look at the attachment and let me know if it is possible to format the parts page this way...with the part number below the description.
Another question: Please go here leslaundry.com/index.php/parts/adc an notice there is no space between the discount and the price...please advise. Thanks
Please Log in or Create an account to join the conversation.
14 years 3 months ago #52902
by Xavier
Replied by Xavier on topic Re: Changing the format of the product page
Hi joe1255,
The name is not displayed twice, the second is the product code.
Go in HikaShop > System > Configuration > Display, and check "No" for the option "Display product code".
You can edit the product view in HikaShop > Display > Views, and edit the view product /show_default.php to format the product page like you want.
And the view: product / listing_price.php
add:
before:
The name is not displayed twice, the second is the product code.
Go in HikaShop > System > Configuration > Display, and check "No" for the option "Display product code".
You can edit the product view in HikaShop > Display > Views, and edit the view product /show_default.php to format the product page like you want.
And the view: product / listing_price.php
add:
Code:
echo " ";
Code:
echo JText::_('PRICE_DISCOUNT_END').'</span>';
Please Log in or Create an account to join the conversation.
14 years 3 months ago - 14 years 3 months ago #52928
by joe1255
Replied by joe1255 on topic Re: Changing the format of the product page
Sorry I meant product code...
Ok here is my problem. On the products listing page for a certain category, for example this one...
leslaundry.com/index.php/parts/adc
I want to have the product code show up, which it does, because I went to HikaShop > System > Configuration > Display, and check "Yes" for the option "Display product code".
Ok now, if you click on the the top product in the list...
leslaundry.com/index.php/parts/adc/produ...ssy-w-rot-sen-magnet
You'll notice that the product code is listed twice. I only want it to show once but I still want to product code to show up on the previous page, the products listing page for a certain category.
Please see the attachment in this thread for how I would like the product page to look. I want the product code below the product info. Thanks.
Ok here is my problem. On the products listing page for a certain category, for example this one...
leslaundry.com/index.php/parts/adc
I want to have the product code show up, which it does, because I went to HikaShop > System > Configuration > Display, and check "Yes" for the option "Display product code".
Ok now, if you click on the the top product in the list...
leslaundry.com/index.php/parts/adc/produ...ssy-w-rot-sen-magnet
You'll notice that the product code is listed twice. I only want it to show once but I still want to product code to show up on the previous page, the products listing page for a certain category.
Please see the attachment in this thread for how I would like the product page to look. I want the product code below the product info. Thanks.
Last edit: 14 years 3 months ago by joe1255.
Please Log in or Create an account to join the conversation.
14 years 3 months ago - 14 years 3 months ago #52932
by Xavier
Replied by Xavier on topic Re: Changing the format of the product page
Try to add this property:
In HikaShop > System > Configuration > Display, edit the Front-end CSS File.
Code:
.hikashop_product_page hikashop_product_code_main{
display: none;
}
In HikaShop > System > Configuration > Display, edit the Front-end CSS File.
Last edit: 14 years 3 months ago by Xavier.
Please Log in or Create an account to join the conversation.
14 years 3 months ago - 14 years 3 months ago #52943
by joe1255
Replied by joe1255 on topic Re: Changing the format of the product page
That worked! Thanks.
Please look at the attachment and let me know if it is possible to format the parts page this way...with the part number below the description.
Please look at the attachment and let me know if it is possible to format the parts page this way...with the part number below the description.
Last edit: 14 years 3 months ago by joe1255.
Please Log in or Create an account to join the conversation.
14 years 3 months ago #52957
by Xavier
Replied by Xavier on topic Re: Changing the format of the product page
Which attachment ? I think you forgot it.
Please Log in or Create an account to join the conversation.
14 years 3 months ago #52970
by joe1255
Replied by joe1255 on topic Re: Changing the format of the product page
It's the one on the first post of this thread.
Please Log in or Create an account to join the conversation.
14 years 3 months ago #52973
by Xavier
Replied by Xavier on topic Re: Changing the format of the product page
Yes it's possible.
Edit the product view in HikaShop > Display > Views, and edit the view product /show_default.php to format the product page like you want.
For example, if you want to put the product code under the product name, just do like that:
Instead of:
Edit the product view in HikaShop > Display > Views, and edit the view product /show_default.php to format the product page like you want.
For example, if you want to put the product code under the product name, just do like that:
Code:
echo "<br /><span class='hika_product_code_show'>".$this->element->product_code."</span>";
Instead of:
Code:
echo " <span class='hika_product_code_show'>".$this->element->product_code."</span>";
Please Log in or Create an account to join the conversation.
14 years 3 months ago #52984
by joe1255
Replied by joe1255 on topic Re: Changing the format of the product page
Here's what I have now and it's not working. Please advise.
<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 $this->element->main->product_name;
else
echo $this->element->product_name;
if ($this->config->get('show_code')) {
echo "<br /><span class='hika_product_code_show'>".$this->element->product_code."</span>";
}
?>
</span>
<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 $this->element->main->product_name;
else
echo $this->element->product_name;
if ($this->config->get('show_code')) {
echo "<br /><span class='hika_product_code_show'>".$this->element->product_code."</span>";
}
?>
</span>
Please Log in or Create an account to join the conversation.
14 years 3 months ago #53088
by nicolas
Replied by nicolas on topic Re: Changing the format of the product page
It doesn't work because you're not editing the view file for the correct template. Please double check your modifications.
Another solution is to simply add that CSS on your template's CSS:
.hika_product_code_show{display:block;}
Another solution is to simply add that CSS on your template's CSS:
.hika_product_code_show{display:block;}
Please Log in or Create an account to join the conversation.
Time to create page: 0.231 seconds