Jump to content

zhihsam

Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Activity
    Developer

zhihsam's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. Thanks a lot for your reply. There was problem with database. I had to add a column to table. Problem is solved
  2. Когда я добавляю или редактирую страницу (cms page) а потом нажимаю кнопку сохранить, выскакивает сообщение что все успешно сохранено. Но на самом деле никакая страница не сохраняется. Если попытаться отключить отображение страницы (кликнув по галочке в списке страниц) то выскакивает ошибка "ошибка изменения статуса"
  3. Hello I'm trying to add or edit cms page. When i edit page or add it and then click "save" button there some success messages appears, but there is no page after it. Nothing happens after it. When i click enable\disable button on page list there appears some "error when changing status"
  4. In the root_folder/themes/mytheme/product.tpl i added data attribute to quantity input: <input type="text" data-quantity="{$product->minimal_quantity}" name="qty" id="quantity_wanted" class="text" value="1" size="2" maxlength="4"> data-quantity="{$product.minimal_quantity}" is what you actualy need. When users click on "add to cart" button they invoke function in root_folder/themes/mytheme/js/modules/blockcart/ajax-cart.js file (if not exists you should copy original file from root_folder/modules/blockcart/ajax-cart.js to path given above). Function is called overrideButtonsInThePage. I made some changes to parse data-quantity from input for multiplying it to minimal quantity i.e. .... overrideButtonsInThePage : function(){ ... //for product page 'add' button... $('#add_to_cart input').unbind('click').click(function(){ var input = $('#quantity_wanted'), // input quantity = input.val() * input.data('quantity'); // parsing our quantity from data-attribute and multiplying by it ajaxCart.add( $('#product_page_product_id').val(), $('#idCombination').val(), true, null, quantity, null); return false; }) ... Also you shoudn't forget to add similar code changes (i mean to add data-quantity attribute) to other parts of your shop (shopping-cart page, order page e.t.c) After all changes done, when you set minimal quantity to your product (e.g. 50) users will be able to buy only 50 or 100 or 150 as it was needed.
  5. Здравствуйте. Подскажите пожалуйста как можно реализовать продажу товара сразу по много штук. Если добавить минимальное количество, к примеру, 50, то пользователь сможет заказать 51, 52 и т.д., а нужно чтобы пользователи заказывали кратное количество (50, 100, 150 ...) Знаю что можно создать товар "содержимое", но тогда в счете отображается одна позиция. Можно ли как-нибудь по другому? Заранее спасибо.
  6. Hello! I need to add to products minimum quantity BUT for example if minimum quantity is equal to 50, users shouldn't be allowed to buy 51 product, they should be able to buy only 50, 100, 150 etc. And it's should be made without using product pack. Thank you.
×
×
  • Create New...