rustyclockwork Posted February 18, 2015 Share Posted February 18, 2015 Hi Everyone, I'm wanting to use both of Prestashop's methods of displaying products... in both regular store format and a catalog mode but only in two categories... I'm wanting to use Prestashop's excellent way of displaying products as a way to display reference items (like a library). I know that a few years ago, Google did NOT like a shopping cart displaying items without a price. This was for Google Shopping. I'm wondering if I keep the non-priced items in a separate category (the library) if it will be easier to keep it from Google Shopping when I list my actual products with prices (haven't used Google Shopping in a while so I don't know if Google simply scans the entire site for priced items or if we are allowed to tell Google which categories are to be listed with them. Any ideas? I'm not opposed to some other method of displaying several thousand reference items, just not sure which method would be best. Thank you,Jason Link to comment Share on other sites More sharing options...
fred-vinapresta Posted February 19, 2015 Share Posted February 19, 2015 (edited) Hi; you can create a new variable in the productController which checks if the product is in the category with catalogue mode: in initContent function $product_categories = $product->getCategories(); $selected_categories = array(3, 4); //array with ids of categories with parts to hide $show_catalogue = 0; foreach ($product_categories as $product_categorie) if (in_array($product_categorie, $selected_categories)) $show_catalogue = 1; $this->context->smarty->assign('show_catalogue ', $show_catalogue ); then in the template you can use the variable {$show_catalogue } to hide parts you want by testing {if $show_catalogue} code to hide...{/if} Edited February 19, 2015 by fred-vinapresta (see edit history) Link to comment Share on other sites More sharing options...
rustyclockwork Posted February 20, 2015 Author Share Posted February 20, 2015 Hi, I'm a little slow when it comes to this stuff... but I will research as much as I can regarding your post and will try to figure it out. Are you saying that there is a way for noting categories so that google won't include them in it's shopping feed? Thank you, Jason Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now