PremiumPress Themes » All Posts https://www.premiumpress.com/forums/forum/responsive-themes/shop-theme/feed/ Thu, 12 Mar 2026 17:25:46 +0000 https://bbpress.org/?v=2.6.4 en-US https://www.premiumpress.com/forums/topic/errors-in-product-page/#post-152277 <![CDATA[Reply To: Errors in product page]]> https://www.premiumpress.com/forums/topic/errors-in-product-page/#post-152277 Thu, 11 Jul 2019 20:48:42 +0000 JamesD @steven
You’re welcome.

The main issue is as stated before. I suppose there could be a number of other things that could complicate it as well, but that would be based on thee overall setup, so it’s hard to say what else could be going on or happened without digging through the code/setup.

<bloickquote>Is it the reason some of the products are missing images because the theme broke?
Sorry, I have no idea. There could be a number of possible reasons..

Also, is there a way of the theme not to import duplicate products or is that in the new theme?

Not that I’m aware of.

Note: There will always be potential for new errors/warnings to arise when using older themes since they are no longer updated to work with current changes in tech like PHP and WP.

]]>
https://www.premiumpress.com/forums/topic/duplicate-products/#post-152266 <![CDATA[Reply To: Duplicate Products]]> https://www.premiumpress.com/forums/topic/duplicate-products/#post-152266 Thu, 11 Jul 2019 08:57:10 +0000 hi,

are the duplicates coming from amazon import? do they have the same store? or exact product title?

]]>
https://www.premiumpress.com/forums/topic/duplicate-products/#post-152252 <![CDATA[Duplicate Products]]> https://www.premiumpress.com/forums/topic/duplicate-products/#post-152252 Thu, 11 Jul 2019 07:43:53 +0000 steven Does the new shop theme deal with duplicate products? Or is it the fault of the Amazon Import plugin?

My site has lots of duplicate products, when i search for new products i add them then there seems to be loads of duplicates in the category.

]]>
https://www.premiumpress.com/forums/topic/errors-in-product-page/#post-152250 <![CDATA[Reply To: Errors in product page]]> https://www.premiumpress.com/forums/topic/errors-in-product-page/#post-152250 Thu, 11 Jul 2019 07:33:23 +0000 steven Thanks James that worked a treat. Do you know why the them broke in the first place?

As I’m not a coder, I normally re-install WordPress or overwrite the theme 99.9 percent of the time i fix things but not on this occasion.

I originally tried uploading the new Shoptheme but it had the same problems.

Is it the reason some of the products are missing images because the theme broke? See photo attached.

Also, is there a way of the theme not to import duplicate products or is that in the new theme?

Thanks James for your help i really appreciate it.

Attachments:
You must be logged in to view attached files.
]]>
https://www.premiumpress.com/forums/topic/errors-in-product-page/#post-152238 <![CDATA[Reply To: Errors in product page]]> https://www.premiumpress.com/forums/topic/errors-in-product-page/#post-152238 Thu, 11 Jul 2019 00:18:12 +0000 JamesD @steven
Adding the following snippet right before line #1796 (same file as before) should resolve those warnings:

if(!isset($atts) || !is_array($atts)) { $atts = [ 'class'=>'' ]; }

Note: Those warnings existed prior to the code (similar problem as first fix), you just didn’t see them.

]]>
https://www.premiumpress.com/forums/topic/errors-in-product-page/#post-152228 <![CDATA[Reply To: Errors in product page]]> https://www.premiumpress.com/forums/topic/errors-in-product-page/#post-152228 Wed, 10 Jul 2019 09:08:21 +0000 steven They are the errors after installing the code you provided

]]>
https://www.premiumpress.com/forums/topic/errors-in-product-page/#post-152227 <![CDATA[Reply To: Errors in product page]]> https://www.premiumpress.com/forums/topic/errors-in-product-page/#post-152227 Wed, 10 Jul 2019 08:43:54 +0000 JamesD @steven
Those are the other potential errors mentioned.

Are those all of the remaining warnings you’re seeing?

]]>
https://www.premiumpress.com/forums/topic/errors-in-product-page/#post-152224 <![CDATA[Reply To: Errors in product page]]> https://www.premiumpress.com/forums/topic/errors-in-product-page/#post-152224 Wed, 10 Jul 2019 08:07:42 +0000 steven Thanks James, i put the code in and there’s still errors see screen shot.

Attachments:
You must be logged in to view attached files.
]]>
https://www.premiumpress.com/forums/topic/errors-in-product-page/#post-152192 <![CDATA[Reply To: Errors in product page]]> https://www.premiumpress.com/forums/topic/errors-in-product-page/#post-152192 Tue, 09 Jul 2019 01:25:24 +0000 JamesD @steven

You’ll need to edit a core file, but it’s an older version with out any more updates so you should be fine. Just be sure to make a backup copy of any files that will be changed first.

Open the /ST-2/framework/class/class_shortcodes.php file and add the following snippet right before line #1928 (the first warning) and it should take care of the offset ‘tab’ warnings:

if(!isset($atts) || !is_array($atts)) { $atts = [ 'tab'=>true ]; }

Note: This is just one fix for those specific errors. There may be other messages lurking elsewhere that will need to be corrected as well.

]]>