Changing the format of the product page

  • Posts: 24
  • Thank you received: 0
12 years 5 months ago #52836

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

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
12 years 5 months ago #52902

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:

echo " ";
before:
echo JText::_('PRICE_DISCOUNT_END').'</span>';

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

  • Posts: 24
  • Thank you received: 0
12 years 5 months ago #52928

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.

Last edit: 12 years 5 months ago by joe1255.

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

  • Posts: 13201
  • Thank you received: 2322
12 years 5 months ago #52932

Try to add this property:

.hikashop_product_page hikashop_product_code_main{
	display: none;
}

In HikaShop > System > Configuration > Display, edit the Front-end CSS File.

Last edit: 12 years 5 months ago by Xavier.

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

  • Posts: 24
  • Thank you received: 0
12 years 5 months ago #52943

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.

Last edit: 12 years 5 months ago by joe1255.

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

  • Posts: 13201
  • Thank you received: 2322
12 years 5 months ago #52957

Which attachment ? I think you forgot it.

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

  • Posts: 24
  • Thank you received: 0
12 years 5 months ago #52970

It's the one on the first post of this thread.

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

  • Posts: 13201
  • Thank you received: 2322
12 years 5 months ago #52973

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:

echo "<br /><span class='hika_product_code_show'>".$this->element->product_code."</span>";

Instead of:
echo " <span class='hika_product_code_show'>".$this->element->product_code."</span>";

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

  • Posts: 24
  • Thank you received: 0
12 years 5 months ago #52984

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>

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

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #53088

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

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

Time to create page: 0.086 seconds
Powered by Kunena Forum