Jump to content

tommo3344

Members
  • Posts

    8
  • Joined

  • Last visited

Profile Information

  • First Name
    Tom
  • Last Name
    Wiblin

Recent Profile Visitors

76 profile views

tommo3344's Achievements

Newbie

Newbie (1/14)

0

Reputation

1

Community Answers

  1. Fair enough, thanks for getting back to me. Best regards, Tom
  2. Hi Lukasknol, I am searching for a similar feature to the one you described. Did you manage to find a solution to this? Best regards, Tom
  3. Hi, I'm trying to apply a % discount to a product, without effecting the price impact of the product combinations. For example, we have a leather bag which is discounted at 30%. The options for the bag are to have words and phrases embossed on the leather. There are 6 combinations with different prices. We do not want to discount the embossing, because this is an extra service, we just want to discount the bag. Currently prestashop apply's the 30% discount to the whole lot, combinations included. Is there any way around this? Kind regards, Tom
  4. I've found a solution using javascript to trigger the change method. This does what I need. <script> $('#singletesdef').keyup(function () { //takes the value entered via <input id="singletesdef"> below $(".tesdef").val($(this).val()); //adds it to each attribute instance <input class="tesdef"> $('.available_quantity').find('input').trigger('change'); }); </script> I'll mark this as solved. - Tommo3344
  5. I have been attempting to do this using jQuery to update all of the input boxes, which does work, however the new value is not being saved to the database when I click save. Here's the code: <!-- test --> <script> $('#singletesdef').keyup(function () { //takes the value entered via <input id="singletesdef"> below $(".tesdef").val($(this).val()); //adds it to each attribute instance <input class="tesdef"> }); </script> <tr> <td class="available_quantity" id=""> <span></span> <input id="singletesdef" type="text" name="" class="fixed-width-sm" value=""/> </td> <td>test default </td> </tr> <!-- /test --> {foreach from=$attributes item=attribute} <tr> <td class="available_quantity" id="qty_{$attribute['id_product_attribute']}"> <span>{$available_quantity[$attribute['id_product_attribute']]}</span> <input type="text" name="qty_{$attribute['id_product_attribute']}" class="tesdef fixed-width-sm" value="{$available_quantity[$attribute['id_product_attribute']]|htmlentities}"/> </td> <td>{$product_designation[$attribute['id_product_attribute']]}</td> </tr> {/foreach} Is there anything I can do to get these values to update when I click save? Any help would be greatly appreciated. Kind regards, Tommo3344
  6. Hi Tomerg3, Is there any way to use the query you wrote or something similar to update all a products attribute quantities to match the default attribute quantity via Back Office > Products > Productname > Quantities. update ps_stock_available set quantity=11 where id_product= (SELECT id_product from ps_product where reference in ('demo_1')) ; e.g. I need to allow the client to update the default from the back office, and all other attributes to match default quantity. The quantity updates need to be synced. I've started a topic here: (https://www.prestashop.com/forums/topic/452842-sync-attribute-quantities/) Which explains in more detail. Kind regards, Tom
  7. Hi, I'm using prestashop 1.6.0.14, Is there a way to sync all of a products attribute quantities(product combination quantities)to match the quantity of the default combination? We would like to be able to update the default combination only, via the back office product page and have that update all the other combinations for that product at the same time. For example, we have a product which can be purchased plain for one price or can be personalised/engraved for an extra cost. Meaning that there is only one product which is itself modified before being shipped. We have multiple options for this which creates discrepancies between the physical stock number and the stock number in prestashop. We've got around the front end stock quantity display issue using a plugin from presto-changeo, however updating quantities in the Back office when we get new stock is still not practical because we would have to update all combinations manually or regenerate combinations every time. I've searched elsewhere on the forum for similar issues and found this: (https://www.prestashop.com/forums/topic/354190-updating-stock-quantities-for-each-product-attributes/) Which suggests it is possible to update all a products combinations quantities with one MySQL query, and I think I would need to modify this template file to integrate the query: (/admin/themes/default/template/controllers/products/quantities.tpl) Specifically this section on lines 160 -168 {foreach from=$attributes item=attribute} <tr> <td class="available_quantity" id="qty_{$attribute['id_product_attribute']}"> <span>{$available_quantity[$attribute['id_product_attribute']]}</span> <input type="text" name="qty_{$attribute['id_product_attribute']}" class="fixed-width-sm" value="{$available_quantity[$attribute['id_product_attribute']]|htmlentities}"/> </td> <td>{$product_designation[$attribute['id_product_attribute']]}</td> </tr> {/foreach} Is anyone able to help and point me in the right direction on how I would do this? Many thanks, Tom
  8. Hi, I have a similar issue where I need there to be one product, multiple options and one global stock entry, however, in my case the options do need to have an impact on price. The shop sells goods with the option of having one of a set of messages embossed on the product. For example, the customer can choose a pre-existing message for an extra £1.00 or a unique message for an extra £2.00. I've tried the above options(customisation & Combinations) and found that using Customisation is fine for stock but does not add the price. Whereas using Product Combinations, does add the price but introduces problems with stock because we have no way of knowing what message people want embossing on their product in advance. An Ideal solution on these product would be to somehow switch off stock entries for the product combinations so they just use the one global stock entry. Or somehow to add prices to the customisations, but I struggling to figure out how. I'm hoping someone has come across this and can help?
×
×
  • Create New...