[Skip to main content](#vessel-content)

#   Product Page - When Select a Characteristic

##

- **[reders](/forum/user/8228-reders "View reders's Profile")**
- [![reders's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8228-reders "View reders's Profile") Topic Author
- [ Offline](/forum/user/8228-reders)

Less More

- Posts: 100
- Thank you received: 1
-
-

14 years 2 months ago [\#58923](#58923) by [reders](/forum/user/8228-reders "View reders's Profile")  *[Product Page - When Select a Characteristic](/forum/2-general-talk-about-hikashop/58923-product-page-when-select-a-characteristic#58923 "Hi,  I am developing a site using Hikashop, the link to a product page is:   www.s387718370.websitehome.co.uk/Proofs/...440#delivery-returns  I have the product page set out how i need it, the issue i have is when i change the size characteristic the page is changing.  Its like the page is loading a new file which does not include the changes to the show&#95;default.php (product) i have made.  How do i fix this?  Thanks in advanced Sean R.")* was created by *[reders](/forum/user/8228-reders "View reders's Profile")*

Hi,

I am developing a site using Hikashop, the link to a product page is:
[ www.s387718370.websitehome.co.uk/Proofs/...440#delivery-returns](http://www.s387718370.websitehome.co.uk/Proofs/Rock-a-Bye-Rosie/index.php?option=com_hikashop&ctrl=product&task=show&cid=1&name=alice&Itemid=440#delivery-returns)

I have the product page set out how i need it, the issue i have is when i change the size characteristic the page is changing.

Its like the page is loading a new file which does not include the changes to the show_default.php (product) i have made.

How do i fix this?

Thanks in advanced
Sean R.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4OTIzLXByb2R1Y3QtcGFnZS13aGVuLXNlbGVjdC1hLWNoYXJhY3RlcmlzdGljP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 2 months ago [\#58924](#58924) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: Product Page - When Select a Characteristic](/forum/2-general-talk-about-hikashop/58923-product-page-when-select-a-characteristic#58924 "Hi,  I am developing a site using Hikashop, the link to a product page is:   www.s387718370.websitehome.co.uk/Proofs/...440#delivery-returns  I have the product page set out how i need it, the issue i have is when i change the size characteristic the page is changing.  Its like the page is loading a new file which does not include the changes to the show&#95;default.php (product) i have made.  How do i fix this?  Thanks in advanced Sean R.")*

Hello,

I think that your problem is just coming from your product's variants description, you should :

- Go to your **product page**
- **Manage variants**
- Set the **same** product description as the "main product" OR just **delete** all the variant's product description.

Hope this will help you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4OTIzLXByb2R1Y3QtcGFnZS13aGVuLXNlbGVjdC1hLWNoYXJhY3RlcmlzdGljP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[reders](/forum/user/8228-reders "View reders's Profile")**
- [![reders's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8228-reders "View reders's Profile") Topic Author
- [ Offline](/forum/user/8228-reders)

Less More

- Posts: 100
- Thank you received: 1
-
-

14 years 2 months ago [\#58929](#58929) by [reders](/forum/user/8228-reders "View reders's Profile")  Replied by *[reders](/forum/user/8228-reders "View reders's Profile")* on topic *[Re: Product Page - When Select a Characteristic](/forum/2-general-talk-about-hikashop/58923-product-page-when-select-a-characteristic#58929 "Hi,  I am developing a site using Hikashop, the link to a product page is:   www.s387718370.websitehome.co.uk/Proofs/...440#delivery-returns  I have the product page set out how i need it, the issue i have is when i change the size characteristic the page is changing.  Its like the page is loading a new file which does not include the changes to the show&#95;default.php (product) i have made.  How do i fix this?  Thanks in advanced Sean R.")*

Hi, thanks for the quick response,

The product's variants description's are empty.

The product description for the parent product is simply:
&lt;p&gt;Elegant bandeau maxi dress with twist front detail in digital print chiffon.&lt;/p&gt;

The slides are hard coded into the show_default.php (product) file, like so:

&lt;div id="hikashop_product_description_main" class="hikashop_product_description_main"&gt;
{slide=About this Product}
&lt;?php
echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$this-&gt;element-&gt;product_description));
?&gt;
{slide=Details &amp;amp; Care}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut dictum congue tellus eu imperdiet. Phasellus enim libero, viverra
eget mattis sed, dapibus id lacus. In vel felis sapien, porttitor eleifend lacus. Duis a tellus nisl, eu feugiat sem. Praesent
nec mauris ac mi feugiat ultrices eget vel nunc.
{slide=Delivery &amp;amp; Returns}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut dictum congue tellus eu imperdiet. Phasellus enim libero, viverra
eget mattis sed, dapibus id lacus. In vel felis sapien, porttitor eleifend lacus. Duis a tellus nisl, eu feugiat sem. Praesent
nec mauris ac mi feugiat ultrices eget vel nunc.
{/slides}
&lt;/div&gt;

I think i need a different fix.

Thanks
Sean R.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4OTIzLXByb2R1Y3QtcGFnZS13aGVuLXNlbGVjdC1hLWNoYXJhY3RlcmlzdGljP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

14 years 2 months ago [\#58974](#58974) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product Page - When Select a Characteristic](/forum/2-general-talk-about-hikashop/58923-product-page-when-select-a-characteristic#58974 "Hi,  I am developing a site using Hikashop, the link to a product page is:   www.s387718370.websitehome.co.uk/Proofs/...440#delivery-returns  I have the product page set out how i need it, the issue i have is when i change the size characteristic the page is changing.  Its like the page is loading a new file which does not include the changes to the show&#95;default.php (product) i have made.  How do i fix this?  Thanks in advanced Sean R.")*

That's because you did your modification in the file "show_default" where the default layout is displayed, but not in the "show" file where the variants data is added to the page.
So when you change the characteristic it just displays the default description instead of the modified one you added.
The best is to simply delete the code displaying the variant description in the "show" file of the "product" view:
&lt;div id="hikashop_product_description_&lt;?php echo $variant_name;?&gt;" style="display:none;"&gt;
&lt;?php echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$variant-&gt;product_description));?&gt;
&lt;/div&gt;

The following user(s) said Thank You: [reders](/forum/user/8228-reders "View reders's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4OTIzLXByb2R1Y3QtcGFnZS13aGVuLXNlbGVjdC1hLWNoYXJhY3RlcmlzdGljP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[reders](/forum/user/8228-reders "View reders's Profile")**
- [![reders's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8228-reders "View reders's Profile") Topic Author
- [ Offline](/forum/user/8228-reders)

Less More

- Posts: 100
- Thank you received: 1
-
-

14 years 2 months ago [\#59075](#59075) by [reders](/forum/user/8228-reders "View reders's Profile")  Replied by *[reders](/forum/user/8228-reders "View reders's Profile")* on topic *[Re: Product Page - When Select a Characteristic](/forum/2-general-talk-about-hikashop/58923-product-page-when-select-a-characteristic#59075 "Hi,  I am developing a site using Hikashop, the link to a product page is:   www.s387718370.websitehome.co.uk/Proofs/...440#delivery-returns  I have the product page set out how i need it, the issue i have is when i change the size characteristic the page is changing.  Its like the page is loading a new file which does not include the changes to the show&#95;default.php (product) i have made.  How do i fix this?  Thanks in advanced Sean R.")*

Hi, Thanks for your response, this have fixed my problem.

I just have another small problem,

When the page is using the "show_default" file, the link for first small image is loaded like so:
&lt;a id="hikashop_image_small_link_first" class="hikashop_image_small_link" ... &gt;

When i select a characteristic, and the page uses the "show" file, the link for first small image is loaded like so
&lt;a class="hikashop_image_small_link" ... &gt;

I am using the css:
\#hikashop_image_small_link_first img.hikashop_child_image {
margin-left: 0;
}
to remove the margin-left from the first small image.

I need the first image to be loaded with a different/additional class, how do i do this?

Thanks
Sean R.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4OTIzLXByb2R1Y3QtcGFnZS13aGVuLXNlbGVjdC1hLWNoYXJhY3RlcmlzdGljP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

14 years 2 months ago [\#59162](#59162) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product Page - When Select a Characteristic](/forum/2-general-talk-about-hikashop/58923-product-page-when-select-a-characteristic#59162 "Hi,  I am developing a site using Hikashop, the link to a product page is:   www.s387718370.websitehome.co.uk/Proofs/...440#delivery-returns  I have the product page set out how i need it, the issue i have is when i change the size characteristic the page is changing.  Its like the page is loading a new file which does not include the changes to the show&#95;default.php (product) i have made.  How do i fix this?  Thanks in advanced Sean R.")*

If you delete the code in the "show" file as I proposed, you won't have that problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4OTIzLXByb2R1Y3QtcGFnZS13aGVuLXNlbGVjdC1hLWNoYXJhY3RlcmlzdGljP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[reders](/forum/user/8228-reders "View reders's Profile")**
- [![reders's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8228-reders "View reders's Profile") Topic Author
- [ Offline](/forum/user/8228-reders)

Less More

- Posts: 100
- Thank you received: 1
-
-

14 years 2 months ago [\#59274](#59274) by [reders](/forum/user/8228-reders "View reders's Profile")  Replied by *[reders](/forum/user/8228-reders "View reders's Profile")* on topic *[Re: Product Page - When Select a Characteristic](/forum/2-general-talk-about-hikashop/58923-product-page-when-select-a-characteristic#59274 "Hi,  I am developing a site using Hikashop, the link to a product page is:   www.s387718370.websitehome.co.uk/Proofs/...440#delivery-returns  I have the product page set out how i need it, the issue i have is when i change the size characteristic the page is changing.  Its like the page is loading a new file which does not include the changes to the show&#95;default.php (product) i have made.  How do i fix this?  Thanks in advanced Sean R.")*

Hi,

Sorry i should of specified that i will be uploading extra images for each color variant, deleting the code in the "show" file will stop the extra images showing when you select the characteristic.

Thanks
Sean R.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4OTIzLXByb2R1Y3QtcGFnZS13aGVuLXNlbGVjdC1hLWNoYXJhY3RlcmlzdGljP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

14 years 2 months ago [\#59314](#59314) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product Page - When Select a Characteristic](/forum/2-general-talk-about-hikashop/58923-product-page-when-select-a-characteristic#59314 "Hi,  I am developing a site using Hikashop, the link to a product page is:   www.s387718370.websitehome.co.uk/Proofs/...440#delivery-returns  I have the product page set out how i need it, the issue i have is when i change the size characteristic the page is changing.  Its like the page is loading a new file which does not include the changes to the show&#95;default.php (product) i have made.  How do i fix this?  Thanks in advanced Sean R.")*

It's not really possible. That id attribute was not meant to be used for that in the first place.

It will require that you hack the code of the file administrator/components/com_hikashop/helpers/image.php and change the code in the display function so that the class is added. But it's not simple since you can't know in that file if it's the first image or not. So it would require to pass an extra parameter from the views to that function so that it would know if it's the first one or not. Also, you can't add it as an id because otherwise the id wouldn't be unique on the page, and that would create problems for HTML validation so you will have to use a class instead.
It's not impossible, but not easy to do I'm afraid.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4OTIzLXByb2R1Y3QtcGFnZS13aGVuLXNlbGVjdC1hLWNoYXJhY3RlcmlzdGljP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[reders](/forum/user/8228-reders "View reders's Profile")**
- [![reders's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8228-reders "View reders's Profile") Topic Author
- [ Offline](/forum/user/8228-reders)

Less More

- Posts: 100
- Thank you received: 1
-
-

14 years 2 months ago [\#59316](#59316) by [reders](/forum/user/8228-reders "View reders's Profile")  Replied by *[reders](/forum/user/8228-reders "View reders's Profile")* on topic *[Re: Product Page - When Select a Characteristic](/forum/2-general-talk-about-hikashop/58923-product-page-when-select-a-characteristic#59316 "Hi,  I am developing a site using Hikashop, the link to a product page is:   www.s387718370.websitehome.co.uk/Proofs/...440#delivery-returns  I have the product page set out how i need it, the issue i have is when i change the size characteristic the page is changing.  Its like the page is loading a new file which does not include the changes to the show&#95;default.php (product) i have made.  How do i fix this?  Thanks in advanced Sean R.")*

Hi,

Thanks for your response i will come up with a different css solution.

I cannot access the back end of your demo site, i'm getting a 403 forbidden error.

Can you fix this?

Regards
Sean R.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4OTIzLXByb2R1Y3QtcGFnZS13aGVuLXNlbGVjdC1hLWNoYXJhY3RlcmlzdGljP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

14 years 2 months ago [\#59396](#59396) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product Page - When Select a Characteristic](/forum/2-general-talk-about-hikashop/58923-product-page-when-select-a-characteristic#59396 "Hi,  I am developing a site using Hikashop, the link to a product page is:   www.s387718370.websitehome.co.uk/Proofs/...440#delivery-returns  I have the product page set out how i need it, the issue i have is when i change the size characteristic the page is changing.  Its like the page is loading a new file which does not include the changes to the show&#95;default.php (product) i have made.  How do i fix this?  Thanks in advanced Sean R.")*

Thank you for the information. It's fixed now.

The following user(s) said Thank You: [reders](/forum/user/8228-reders "View reders's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4OTIzLXByb2R1Y3QtcGFnZS13aGVuLXNlbGVjdC1hLWNoYXJhY3RlcmlzdGljP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.327 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
