Search the Community
Showing results for tags 'programming'.
-
Hello Community, I have two questions: I have a product with two different variants. One with 100ml and 200ml. I want two different item numbers for them. Actually I gave them two item numbers but it shows me only one item number. example: 100ml has the item number 43214 and 200ml 98760, but it shows me only the item number 43214 for both variants. I want a price under each option that I can choose. How I can realize that and where? I want to see what each option costs. example.: Option 100ml costs 2€ and option 200ml costs 4€ Best regards
-
- article
- article with variants
-
(and 2 more)
Tagged with:
-
Hello Devs, How to change position of product in category to the end using PHP? Is there is any built in php solution or should I write my own? EDIT: I wrote down something like this: $nafo_products = Db::getInstance()->executeS(' SELECT `id_product` FROM `' . _DB_PREFIX_ . 'product` WHERE `available_for_order` = 0 AND `active` = 1 '); $nafo_products = array_column($nafo_products, 'id_product'); foreach ($nafo_products as $id_product) { $product_categories = Product::getProductCategories((int)$id_product); foreach ($product_categories as $id_category) { $last_position = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue(' SELECT MAX(position) FROM ' . _DB_PREFIX_ . 'category_product WHERE id_category = ' . (int)$id_category . ' ', true); $current_position = (int)Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue(' SELECT position FROM ' . _DB_PREFIX_ . 'category_product WHERE id_category = ' . (int)$id_category . ' AND id_product = ' . (int)$id_product . ' '); // To improve performance (do not move products already moved) $counted_already_moved = count(Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' SELECT p.id_product FROM ' . _DB_PREFIX_ . 'product p LEFT JOIN ' . _DB_PREFIX_ . 'category_product cp ON (p.id_product = cp.id_product) WHERE cp.id_category = '.(int)$id_category.' AND p.active = 1 AND p.available_for_order = 0 ')); if (($last_position - $current_position - $counted_already_moved) >= 0 ){ if (Product::setProductPositionInCategory($id_product, $id_category, $last_position)){ echo 'Moved ('.$id_product.') ' . Product::getProductName($id_product) . ' to the end of category' . $id_category . '.<br>'; } } else { echo 'Product ('.$id_product.') ' . Product::getProductName($id_product) . ' is already at the end of ' . $id_category . ' <br>'; } } } And in Product.php override add this function which is not only usefull to move product to the end but to any position given. It is static remake setWsProductPosition which is only working for default id category. public static function setProductPositionInCategory($id_product, $id_category, $position) { if ($position < 0) return false; $current_position = (int)Db::getInstance()->getvalue(' SELECT position FROM ' . _DB_PREFIX_ . 'category_product WHERE id_category = ' . (int)$id_category . ' AND id_product = ' . (int)$id_product . ' '); $products_in_category = Db::getInstance()->executeS(' SELECT id_product FROM '._DB_PREFIX_.'category_product WHERE id_category = '. (int) $id_category.' ORDER BY position '); if ($current_position == $position || ($position + 1) > count($products_in_category)) return false; $products_in_category = array_column($products_in_category, 'id_product'); if ($current_position && isset($products_in_category[$current_position])) { $save = $products_in_category[$current_position]; unset($products_in_category[$current_position]); array_splice($products_in_category, (int)$position, 0, $save); } foreach ($products_in_category as $new_position => $cat_id_product) { Db::getInstance()->update('category_product', array( 'position' => $new_position, ), '`id_category` = '.(int)$id_category.' AND `id_product` = '.(int)$cat_id_product); } return true; } This basically takes all of the not available for sale products and move them into the last position of each category they belongs. Put in cron.
-
- programming
- category
-
(and 2 more)
Tagged with:
-
Hello everyone! I am new at this and I have a question related on how to customize a product based on some input of the client. Let me explain: my idea is to sell a weekly food menu for kids that will depend on the school and the possible alergies to differnet products. So once a formular is filled, the page should "calculate" the best menu option and show it to the client Any ideas how to implement that? Thanks in advance!
- 2 replies
-
- programming
- product
-
(and 2 more)
Tagged with:
-
Hello, We are having some problems with our online shop. 1. When we add a product to the cart there is an error: HTTP ERROR 500, and we need to refresh the page so it returns to the homepage. The product was added to the cart, but we need to refresh the page to see it again. 2. Then, when we enter the cart and we try to change the product quantity , or erase the product there is this error: TECHNICAL ERROR: unable to save update quantity Details: Error thrown: [object Object] Text status: error Maybe this is a Rookie mistake, but can someone help? Thank you!
- 4 replies
-
- Configuration
- Error
-
(and 1 more)
Tagged with:
-
Здравствуйте. Разрабатываю админку для модуля и стала твориться одна странная вещь, с которой ранее мне еще не доводилось встречаться. Не переопределяется только один из многих метод дочернего класса, остальные работают. Есть класс контроллера AdminStoresController.php. Он при установке модуля оверрайдится class AdminStoresController extends AdminStoresControllerCore в нем перегружаются несколько методов родителя, а один метод ПЕРЕОПРЕДЕЛЯТЬСЯ НЕ ХОЧЕТ public function renderForm() Ничего экстраординарного в дочернем методе нет, тоже публик и тоже без аргументов. Кто сталкивался с подобным можете подсказать в чем может быть дело? Или хотя бы в какую сторону копать? Буду безмерно благодарен за помощь.
-
Would you like to earn some extra money with programming in Prestashop? We are looking for enthusiastic Prestashop programmers. We have various Prestashop programming assignments. We are looking for programmers to develop new Prestashop modules, and we also have assignments to adapt existing Prestashop modules. All Prestashop module assignments are provided in English. How do we proceed? - send an email to [email protected] with the subject: "New Assignment" - in our reply we will send you a Prestashop module - we would then like you to give us an estimate of the time you think you might need to work on the module - based on an agreed amount of time, 50% of the corresponding amount will be paid out to you in advance - after completion you will place the developed or adapted Prestashop module on our webserver - after having checked and tested your Prestashop module, the remaining 50% will be paid out to you If you are interested in earning some extra money working on the Prestashop modules, please send an email to [email protected] with the subject: "New Assignment" Best regards, Rolf
-
Wil je wat bijverdienen in het programmeren in Prestashop? Wij zijn op zoek naar enthousiaste Prestashop programmeurs. Wij hebben diverse Prestashop programmeeropdrachten. Wij zoeken programmeurs voor het ontwikkelen van nieuwe Prestashop modules maar wij hebben ook opdrachten om bestaande Prestashop modules aan te passen. Alle Prestashop module opdrachten worden door ons aangeleverd in de Nederlandse of Engelse taal. Hoe gaan wij te werk? - stuur een email naar [email protected] met als titel: Programmeeropdracht - je krijgt vervolgens van ons een Prestashop module opdracht toegezonden - vervolgens maak je een inschatting hoelang je denkt aan de Prestashop module opdracht te moeten werken - op basis van de overeengekomen tijd wordt 50% van de opdracht al aan je uitbetaald - daarna plaats je op onze webserver de door jouw ontwikkelde of aangepaste Prestashop module - vervolgens testen wij jouw Prestashop module uit waarna het resterende bedrag aan je wordt uitbetaald. Heb je interesse om wat bij te willen verdienen? Stuur dan vandaag nog een email naar: [email protected] met als titel: Programmeeropdracht
- 1 reply
-
- programming
- module
-
(and 1 more)
Tagged with:
-
Hello! I am new to PrestaShop and I'm creating a family structure. There are currently 11682 categories, but most times it is not feasible navigate. With some 100 goes well. Is there any way that PrestaShop in a light handle all these categories. A shop of vehicle components. Example: Compressors> AGCO> Terragator 1000 Series Any solutions? Thank you for your help.
-
Hi, I want to create an order from code (from a button I've created in a form), without using the order-opc steps... How can I do that? Thanks
-
hi there! fairly new to prestashop but seems very straight forward. my issue is that i'm helping a friend build his shop, and don't have much time to do it (like not even a full week) so i want to find a way of speeding the process up. The most of the time seems to be spent applying the same category attributes to many many muiltiples of items which have already been entered into the database in basic form. SO! i reckon if i can get into it and see the whole thing in code, with some nifty copying pasting i can save a boat load of time and just code the site up from the back end instead of using the delightful, but somewhat restrictive GUI provided. Absolutely any help on this matter, a finger in the right direction would be of great help! cheers muchly in advance. Steve
-
Hello, I'm looking for a manual to program with prestashop. There is a manual for beginer user but that isn't what I want. I want to customize some pages and use content from a module to another. Bonjour, je suis à la recherche d'un guide de développement prestashop. Le guide utilisateur est disponible mais pour aller plus loin c'est à dire ajouter des champs sur certaines pages produits... récupérer le contenu d'un module vers un autre , j'ai besoin de mieux connaitre les classes sur lesquels agir. je travaille avec la version 1.5 de prestashop. Merci
- 2 replies
-
- prestashop
- manual
-
(and 1 more)
Tagged with:
-
Hi, So for one of my services that I'm selling on the website is related directly to a specific VEHICLE. Exact match must be with YEAR, MAKE & MODEL. So before a customer makes this purchase and then later finds out that it is not compatible with his/her vehicle, I would like to do the following. Program a list of all the vehicles this service is compatible with. I think it's done via combinations? Basically I'll provide you with a list of car years, makes and models and you'll program it. The out come should be simple: A customer goes to the product, and from a drop down menu selects the year (for example 2008) then the make (for example HONDA) then the model (CIVIC). Obviously each next selection is generated based on the previous selection, if the year 2011 is selected, so car makes that are compatible with year 2011 pop-up, if a car make is selected -> 2011 MERCEDES, only the compatible MERCEDES models popup. If for example 2011 Mercedes s600 is NOT compatible, S600 would not be on the list. Heres a link to the current product: http://www.safetyrestore.com/51-airbag-module-reset.html They can simply add it to their card without reading if the service is ocmpatible with their vehicle, so by preventing this I will need this developed ASAP. PM with any questions, and offers. I prefer that this will completed within a week. Thanks! P.S. eBay has a great setup for this exact service we sell, check out here: http://www.ebay.com/itm/NISSAN-ALL-MODELS-AIRBAG-COMPUTER-CONTROL-UNIT-ECU-RCM-SDM-ACM-MODULE-RESET-/190823898158?pt=Motors_Car_Truck_Parts_Accessories&fits=Make%3ANissan&hash=item2c6dfd9c2e&vxp=mtr
- 1 reply
-
- combination job
- programming
-
(and 2 more)
Tagged with:
-
Hi everyone. I'm fighting with Prestashop and its code (because there isn't a good documentation). I'm trying to program a controller. Not a module. A CONTROLLER. You know that in Doc section there are few tutorials but they are very basic. I need an advanced information about Prestashop and its API, and how to create controllers. So, thank you for your responses and help. Bye, Gerardo.
- 5 replies
-
- controller
- development
-
(and 1 more)
Tagged with:
-
Hi, who can make this module for me? See the attachment for the example. It a module to create a frame around a product picture. I wil pay in Euro's.... Regards, Rolf Netherlands module_request.pdf
-
Hi I need to expand the class of categories so I can rank on the page (which has sub-categories) display as well as products that are in these subcategories or How edit the Template for displaying products from subcategories in category page Its possible ? Thank for reply. (sorry for english, translated by Google)
-
- categories
- class
-
(and 3 more)
Tagged with:
-
A developer team (including designers) is looking for new projects based on PHP and MySQL with a focus on e-commerce websites. 8 years long we have been working in the field of e-commerce and know well the structure and the code of Magento, osCommerce, XTComemrce and XCart. Joomla is also part of our experience and is supported in a perfect form. Additionally we have good experience in Search Engine Optimization. Our practical knowledge of the following areas: - PHP / MySQL - JavaScript - HTML - CSS - ASP.NET - Ajax Among other things we provide with following services: - Webdesign - Development of E-commerce-oriented systems - Customized and bespoke project development - E-Bay / Amazon solutions for online shops - Mobile Shop solutions for iPad, iPhone, etc. - Payment gateway development for online transactions - Interface development for systems such as Open ICEcat Catalogs, etc. - Multiple frontends solution / Mall shop system / Multistore / Multishop - And more We are looking forward to a long cooperation and would be pleased to discuss details. Please send us your requirements at [email protected]. Kind regards, Alex Samoylenko Rash Enterprises Ltd. Еrading Office Belvidere Fyvie Turriff AB53 8QP United Kingdom Company No. SC 382590 e-mail: [email protected] website: www.rashenterprises.co.uk
- 1 reply
-
- webdesign
- development
-
(and 3 more)
Tagged with: