Jump to content

A G

Members
  • Posts

    29
  • Joined

  • Last visited

Profile Information

  • First Name
    A
  • Last Name
    G

A G's Achievements

Rookie

Rookie (2/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done Rare
  • One Month Later Rare

Recent Badges

0

Reputation

  1. Hi, I know that isn't problem for most of the owners but is there a way that Prestashop could change prices in cart when using percentage voucher? Now it calculates discount and subtracts it from total cost. But I import orders to my program and I would like to have percentage subtracted from every product. Is it possible? Is there any module for that? Thank you
  2. Czyli moge sobie stworzyc regule np. Stawka A, dodac do niej kraje i kazdemu z tych krajow dodac inna stawke, nastepnie ta regule ustawic w produkcie?
  3. Cześć, Czy można ustawić, żeby ten sam produkt dla klienta z Polski miał VAT np. 23% a dla klienta z Niemiec 19% ?
  4. Hi, we let customers order products that we don't have in stock. If the customer only has products in stock in the cart, then there is no problem. The same if there are only products that are not in stock. The problem arises when the customer in the cart has a mix, a few products in stock and a few not. I would like to give the customer the option to decide whether we should send the products that we have on stock and send the rest later or he wants to wait until we complete all of them. There is also the issue of free delivery. Suppose free shipping is $ 100 in our store. If the customer chooses the option of partial shipment, then depending on the value of the two parts, he must add the appropriate amount for the shipment. Do you know this or a similar module?
  5. Hi, I've installed PS1.6 in Polish language than added French but URL's for login, cart, etc. didn't translated. So I translated it by myself in SEO & URL and now my cart doesn't work properly, when I want to go further to login/address info I can't it will redirect me back to cart. When I turn off friendly url than it works OK. I've done this couple of times with other languages and I can't remember that I had those kind of problems. Any ideas? Thank you
  6. Hello, In Cart (I use 5 step cart) I've added radiobox "stock_action" and I need to send this value to the Cart object because based on the value I would like to add some extra costs to order. In Cart.php Override I've declare $stock_action variable and added it to : public static $definition = array( 'table' => 'cart', 'primary' => 'id_cart', 'fields' => array( 'id_shop_group' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_shop' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_address_delivery' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_address_invoice' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_carrier' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_currency' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_customer' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_guest' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'stock_action' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_lang' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'recyclable' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'gift' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'gift_message' => array('type' => self::TYPE_STRING, 'validate' => 'isMessage'), 'mobile_theme' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'delivery_option' => array('type' => self::TYPE_STRING), 'secure_key' => array('type' => self::TYPE_STRING, 'size' => 32), 'allow_seperated_package' =>array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'), 'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'), ), ); But the value of the stock_action radio isn't sending after clicking the button to the next step in Cart. Then I've tried to send that value using AJAX but I'm not sure how to send it correctly and catch it on the other side to assign to a Cart object. I've tried various combination of other functions in cart-summary.js and I came up with something like this: function setStockAction() { var val = $('input[name=stock_action]:checked').val(); $.ajax({ type: 'POST', headers: {'cache-control': 'no-cache'}, url: baseUri + '?rand=' + new Date().getTime(), async: true, cache: false, dataType: 'json', data: 'controller=cart' + '&ajax=true' + '&stock_action=' + val + '&token=' + static_token + '&allow_refresh=1', success: function(jsonData) { alert('ok!'); } }); } Am I on the right track or is there an easier way to do it in Prestashop? Thank you.
  7. Witam, Dodałem parametr/zmienną $active_attr w funkcji updateAttribute, addCombinationEntity, addAttribute w overridzie klasy Product, ogólnie chodzi o możliwość włączenia i wyłączenia kombinacji. Kod działa ale niestety w logach mam poniższe błędy (wklejam dla updateAttribute ale dla pozostałych w/w funkcji jest tak samo), chciałbym usunąć te błędy. Pomijając to, że śmiecą w logach i logi sporo zajmują to przeszkadzają mi w korzystaniu z API. Jeśli usunę override Product to mogę normalnie z API korzystać w przeciwnym wypadku wywala mi błąd 500. Declaration of Product::updateAttribute($id_product_attribute, $wholesale_price, $price, $weight, $unit, $ecotax, $id_images, $reference, $ean13, $default, $active_attr, $location = NULL, $upc = NULL, $minimal_quantity = NULL, $available_date = NULL, $update_all_fields = true, array $id_shop_list = Array) should be compatible with ProductCore::updateAttribute($id_product_attribute, $wholesale_price, $price, $weight, $unit, $ecotax, $id_images, $reference, $ean13, $default, $location = NULL, $upc = NULL, $minimal_quantity = NULL, $available_date = NULL, $update_all_fields = true, array $id_shop_list = Array) Dzięki
  8. Tak, wiem ale nie o to chodzi w moim pytaniu. Nie chodzi o to, jak obniżka jest obliczana ale gdzie jest przetrzymywana. Teraz rabat jest zsumowany ze wszystkich produktów objętych kodem rabatowym i zapisany w tabeli ps_orders a ja potrzebuję, żeby kod rabatowy obniżał cenę każdej pozycji i zapisywał niższą cenę w tabeli ps_order_detail, wtedy importując pozycje zamówienia do programu fakturującego będą one miały już uwzględnione rabaty.
  9. Cześć, Potrzebuję żeby kod rabatowy w koszyku pomniejszał faktycznie kwotę każdej pozycji, której rabat dotyczy. Teraz kod rabatowy zlicza wszystkie zniżki i wpisywany jest do bazy jako rabat dla podsumy. Ja potrzebuję, żeby on po prostu obniżał cenę każdego produktu. Problem jest taki, że mój program do fakturowania nie pozwala na dodawania rabatów kwotowych do RO (mamy importer, który z automatu z zamowień w sklepie tworzy rezerwację odbiorcy w programie magazynowo-sprzedazowym). Może to tylko kwestia konfiguracji Presty czy trzeba by było w kodzie coś pozmieniać? Dzięki.
  10. Hello, Is it possible to set vouchers to lower the price of product instead of adding all price drops and subtract them from total price? We use custom tool to import orders from Prestashop to our ERP and preparing invoice. Problem is that we cannot add quota discount to the invoice, only %. That's why we need to have price of the products reduced instantly. Can this be done by setting up build in tool or we need some custom module? Thank you.
  11. Krąży taki kod: <script type="text/javascript"> $(function(){ var groupIds = new Array(); $('select[id^="group_"]').each(function(){ groupIds.push(this.id); }); var allCombinations=new Array(); $.each(combinations,function(key,combination){ allCombinations.push(combination['idsAttributes']); }); $('select[id^="group_"]').change(function(){checkCombination()}); checkCombination(); function checkCombination() { $('select[id^="group_"] option').removeAttr('disabled'); $.each(groupIds,function(key,groupId){ var this_select=$('select[id='+groupId+']'); this_select.children('option').each(function(){ if(this_select.val()!=this.value){ var combination=new Array(); combination[key]=this.value; $.each(groupIds,function(key2,groupId2){ if(key!=key2){ combination[key2]=$('select[id='+groupId2+']').val(); } }); var position=-1; $.each(allCombinations,function(key1,theCombination){ if(position==-1){ position=key1; $.each(theCombination,function(key2,value){ if(combination[key2]!=value) { position = -1; } }); } }); if(position<0) { this_select.children('option[value='+this.value+']').attr('disabled','disabled'); } } }); }); } }); </script> I w połączeniu z option[disabled] { display: none; } W pewnym sensie załatwiałby sprawę, niestety nie do końca działa. Tzn. w przypadku gdy mamy np. Kolor i Rozmiar, to faktycznie wyświetlają się tylko dostępne rozmiary w wybranym kolorze ale blokuje (tzn. ukrywa) wszystkie pozostałe kolory. Więc na liście z kolorami jest tylko jeden kolor nie da się zmienić koloru. Może ktoś jest w stanie poprawić ten kod?
  12. To jest tak nielogiczne, bezsens. Skoro są moduły, które to robią to czemu nie poprawili tego w silniku. Fajnie, że są te moduły, itd. ale moim zdaniem przez to funkcjonalność samej presty cierpi, bo po co mają robić coś za free jak mogą % od sprzedaży modułu zgarnąć. Jakiś sposób musi być, nie wierze że wszyscy kupują moduły albo pozwalają żeby klient się przeklikiwał przez 30 pozycji.
  13. Tak. Czyściłem mechanizmem wbudowanym z Presty, modułem empty cache i nawet ręcznie. To nie kwestia cacheu. Nie wiem czy to ma jakieś znaczenie ale kombinacje były generowane za pomocą generatora a następnie te, których nie było zostały usunięte.
  14. Raczej chodzi o szablon (theme / template). Zobacz tutaj: https://www.templatemonster.com/free-prestashop-templates/
×
×
  • Create New...