Search the Community
Showing results for tags 'assign'.
-
I have a public function in php page like this public function _getProductID($id_product) { return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('SELECT `id_product` FROM `'._DB_PREFIX_.'packing_product` WHERE `id_product` = '.(int)$id_product); } public function hookDisplayProductAddition...
-
i have created a custom list of product, then i created $products_for_template like this $products = $ids; $assembler = new ProductAssembler($this->context); $presenterFactory = new ProductPresenterFactory($this->context); $presentationSetti...
-
Hi, i need to auto assign parent categories to all products in my shop. For example: A -B -C --SUB1 --SUB2 -D -E A2 -B2 -C2 -D2 So i need to auto assign category "A" to B, C, SUB1, SUB2, D, E. Next assign category "C" to SUB1, SUB2. Next assign category A2 to B2, C2,...
-
Hi, guys! I need to add new functionality to 'ps_emailsubscription' module. When the 'register for newsletter' button is clicked two things have to happen: a new one-use-only 5% discount voucher has to be created and assigned only to that specific email, even if the user is not registered...
-
Hi, I am trying to group the products in cart summary page by suppliers. Within the {foreach $products as $product}{} loop, I am trying to assign a product value to a smarty variable. But when I am printing the value inside the loop, it is showing the default value which I have set before the lo...
-
I have module store manager but I dont see how to do this in there or in PS back office??? As it is now all 1400+ products, when checking out , the customer can choose both carriers but I cant allow that. I know I can go into each product and select what carrier but there has to be a way to do this...
-
Hi crew, so right now I sell contact lenses and with up to 200 combinations with one generic image it would take forever not to mention the waste of time to edit one by one in ordeer to assign that image. I was expecting an option under Product Combination Generator to do exactly that, just after qu...
-
I made my very first plugin , however, I want to show all products in a .tpl. So far it wasn't a problem in the php-file I made. But i really want to manipulate it through a controller, as recommended. It ALMOST works, I found a snippet with this: $this->context->smarty->assign( 'produc...
- 5 replies
-
- assign
- getProducts
-
(and 2 more)
Tagged with:
-
Here is what I need. I need to assign a customer to 2-3 different groups for the purpose of different pricing on different products. Example I have a default group, dealer, and wholesale dealer. I want to be able to assign 1 customer to all 3 groups and get the best discount possible (wholesale de...