This topic has 4 replies, 2 voices, and was last updated 1 years, 7 months ago ago by Rose Tyler
Hi, currently have a website build with divi theme and i’ve had the single-product.php edited. I’ve provided the edited code is in the private content area. I’m switching my theme to xstore how do i do i make it work the same referance on how it works see https://drcolorchip.com/product/squirt-n-squeegee-plus-kit/
Hello, WEBPIXELS,
Thank you for getting in touch with us.
As you are aware, each theme has different layouts and styles for Single product, Shop, Blog, Single post, etc. pages. If you had a different theme active and the design of the Single product page was suitable for your needs, but not the same as the XStore theme, then you have a few options available to you:
1/ Check each of the prebuilt Single product layouts from our Theme Options -> https://prnt.sc/atT5Fgy0LWXn and choose the best one.
2/ Enable Single Product builder -> https://prnt.sc/peOIvSwpjQYP and built your own design and structure for Single products -> https://prnt.sc/GqU9T3RXdWLW. Also we have built-in posibility to show different Single product layouts based on multiple conditions.
3/ Ask for additional customization (WPKraken team or any other customization service) because as you know, according to our support policy, we don’t provide customization services -> https://prnt.sc/5dXhwBjw6frx
Kind Regards,
8theme team
i’m happy to do the customization myself i just need to know which file to put these custom functions into. for Divi i used the single-product.php. in Xstore the single-product.php has multiple templates inside of it. so i’m not sure where to put my custom functions.
Hello, WEBPIXELS,
Thank you for your response.
It depends on the content you need to modify.
You may make your changes in single-product.php file as well as for the Divi theme, because this file is from the WooCommerce plugin so Divi just rewrote it in theme to make its own design.
Also, you may need to make changes in next files:
xstore/woocommerce/single-product-content-booking.php (depends on this layout type -> https://prnt.sc/AROdidNjB_dk)
xstore/woocommerce/single-product-content-center.php (depends on this layout type -> https://prnt.sc/Z_JzedIGOW_L)
xstore/woocommerce/single-product-content-fixed.php (depends on this layout type -> https://prnt.sc/WTK-MJBbdWrP)
xstore/woocommerce/single-product-content.php (used for all layout types except for previous ones)
xstore/woocommerce/content-single-product.php (this file could be useful to rewrite in child-theme if you need to modify things shown on screenshot -> https://prnt.sc/kXMs9u1WsgxG)
xstore/woocommerce/single-product/product-image.php ( in case you want to edit product-image code)
In case you choose our Single product builder to use then modification you can do with rewriting next files in your child-theme:
xstore/woocommerce/content-single-product-builder.php
xstore/woocommerce/single-product/product-image-builder.php
Also in case you choose to use Builder it may be useful for you to know what hooks are used with Builder. The list of hooks you may find in the next topic -> https://www.8theme.com/topic/trying-to-add-some-extra-code/#post-265666
It is important to mention that all customization should be done in child-theme folder by copying and editing parent files. Example:
Copy xstore/woocommerce/single-product-content.php => xstore-child/woocommerce/single-product-content.php and make your changes.
We hope this information is helpful.
Kind Regards,
8theme team
Tagged: customization, product page, single-product.php, themes, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up