Show only enabled products in Intro product selector

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeShow only enabled products in Intro product selector

This topic has been marked as resolved.

Hi,

I wanted to know if it’s possible to only show enabled products and products with qty>0 in the product selector screen of the intro.
Basically, I have multiple items of the same model number, differentiated by SKU, and I enable only 1 sku of each model, and disable the rest. In the intro selection, I do not know which product is enabled, so I have to select all the products of the same model.
If that’s not possible, it would help if the enabled/disabled status is displayed on the selection screen.

Thanks

 Abhas
January 11, 2014 at 1:04 pm #29891

Hi!

Open admin/model/defaultModel.php, find the following row:

if (isset($data['sort']) && in_array($data['sort'], $sort_data)) {

and insert this immediately before it:

$sql .= " AND p.status = 1 AND p.quantity > 0";

This should resolve your problems.

Regards,
ThemeBurn team

January 20, 2014 at 10:57 am #30045

Perfect! Thanks :)

 Abhas
January 21, 2014 at 9:04 am #30069

Another thing, I’m using cloudflare CDN. I was wondering if the theme is compatible with CDN, because now my intro slider is not working. It only shows me the first product description without the image, and does not scroll.
Used to work fine before the CDN was implemented.

Anything in particular you would know that causes this? And is there a workaround for that?

my site: http://www.otmjewellery.com

Thanks

 Abhas
January 21, 2014 at 9:14 am #30070

Hi again!

We looked into your site and found that your slider is not working because of an error that is not connected with Shoppica theme. There are two script which cause javascript errors on your site and the prevent the Shoppica slider from working:

1. The script located in http://www.otmjewellery.com/contactupload/scripts/gen_validatorv31.js causes the following error:

TypeError: itemobj is undefined

2. The script located in http://www.otmjewellery.com/catalog/view/javascript/isearch.js causes the following error:

TypeError: originalSearchBoxOffset is null

These errors come from external extensions you have installed and we are unable to provide support for them, but you may get support from their authors. We hope the errors we have located will help you. We are pretty sure these errors will also appear with the default opencart theme enabled.

Regards,
ThemeBurn team

January 28, 2014 at 10:09 am #30150

Hi,

Thanks again for excellent support, indeed, it was the javascript you have mentioned which was causing the slider to fail.
I disabled them, and it’s working perfectly.

Again, many thanks for your support, despite this not being a Shoppica problem

Cheers,
Abhas

 Abhas
January 28, 2014 at 10:20 am #30153

Glad we’ve helped, Abhas :)

BR,
ThemeBurn team

February 4, 2014 at 9:53 am #30263
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.