Jump to content

netfuchs

Members
  • Posts

    8
  • Joined

  • Last visited

Profile Information

  • Location
    Switzerland
  • Interests
    Entwicklung von Anbindungen an ERP-Software für Schweizer Bedürfnisse, im Speziellen an das Comatic ERP.
  • Activity
    Web development agency

Recent Profile Visitors

384 profile views

netfuchs's Achievements

  1. The following SQL-Query adds all missing entries from ps_authorization_role into ps_access for the role 1 which is the role for the administrator. INSERT INTO ps_access (id_profile, id_authorization_role) SELECT '1', ar.id_authorization_role FROM ps_authorization_role ar LEFT JOIN ps_access a ON ar.id_authorization_role = a.id_authorization_role WHERE a.id_authorization_role IS NULL Always make a backup of your database before running this query.
  2. Customer groups must be set to YES under Advanced Parameters > Performance
  3. Ich bin zwar etwas spät, aber vielleicht hilft es trotzdem noch Jemandem. Die Abfrage macht folgendes: Wenn die Variable $nobots gesetzt ist, dann setze ein "no" vor "index" = noindex. Wenn $nofollow gesetzt ist, dann setze ein "no" vor "follow" = nofollow. Eine mögliche Ursache für die Aktivierung der Variablen kann sein, wenn im Modul Facettennavigation ab der Version 2.2.1 für Prestashop 1.6, die Schalter für Suchmaschinen-Robots, auf nein gesetzt sind.
  4. Hi all Prestashop version is 1.7.4.2 On the product page I want to show product-attributes in a grid, with the possibility to insert the quantity per attribute and to add this to the cart. Problem is: after changing the quantity in one of the fields, the inserted value will be reset and the order of the attribute rows will be changed. I have modified the file /themes/classic/templates/catalog/_partials/product-variants.tpl. As the result, I have one line per attribute, with a quantity field and an add-to-the-cart button per row. I have also erased the quantity field at the page ../catalog/product.tpl, but this had no effect to the behaviour. I have also modified or erased the functions of product.js and theme.js, but i didn't notice any impact. /themes/classic/templates/catalog/_partials/product-variants.tpl looks like this: <div class="product-variants"> {foreach from=$groups key=id_attribute_group item=group} <div class="clearfix product-variants-item"> <span class="control-label">{$group.name}</span> <row> <table class="table-product-discounts"> {foreach from=$combinations key=id_attribute item=group_combinations} <tr> <td>{$group_combinations.attributes_values.1}</td> <td>{math equation="x + y" x=$productPriceWithoutReduction y=$group_combinations.price}</td> <td><form autocomplete="off" name="formlist{$group_combinations.attributes.0}" action=" {$urls.pages.cart}" method="post"> <input type="hidden" name="token" value="{$static_token}"> <input type="hidden" value="{$product.id_product}" name="id_product" id="id_product"> <input type="hidden" data-product-attribute="{$group_combinations.attributes.0}" name="id_product_attribute" value="{$group_combinations.attributes.0}"> <input type="number" style="padding: 11px 10px; float:left; width: 40%; class="input-group form-control" data-product-attribute="{$group_combinations.attributes.0}" name="qty{$group_combinations.attributes.0}" min="1" value="1"> <button class="btn btn-primary list-btn" data-button-action="add-to-cart" type="submit" > <i class="material-icons shopping-cart">&#xE547;</i> </button> </form> </td> </tr> {/foreach} </table> </row> </div> {/foreach} </div> Any help is highly appreciated. Thank you.
  5. Stop whith the product max works, after setting "allow ordering out-of-stock products" to NO.
  6. My solution for version 1.7: in templates/checkout/_partials/steps/payment.tpl change: <input class="ps-shown-by-js {if $option.binary} binary {/if}" id="{$option.id}" data-module-name="{$option.module_name}" name="payment-option" type="radio" required {if $selected_payment_option == $option.id || $is_free} checked {/if} > to: <input class="ps-shown-by-js {if $option.binary} binary {/if}" id="{$option.id}" data-module-name="{$option.module_name}" name="payment-option" type="radio" required checked > change: {if $option.additionalInformation} <div id="{$option.id}-additional-information" class="js-additional-information definition-list additional-information{if $option.id != $selected_payment_option} ps-hidden {/if}" > {$option.additionalInformation nofilter} </div> {/if} to: <div> {$option.additionalInformation nofilter} </div>
×
×
  • Create New...