Jump to content

cikcak

Members
  • Posts

    110
  • Joined

  • Last visited

1 Follower

Profile Information

  • Location
    Lit
  • Activity
    Freelancer

cikcak's Achievements

  1. Hello, thanks for any information and help! I am using official prestashop analytics module but it always call: 2 pageview request. Same web property ID is tracked twice. I have tried all ways.. On other site its okey, but on this I can do everything but still two pageview request and same notification. If I disable module - any analytics tag (using chrome google tag manager). So its like module cause it? But how? If on other sites it works perfect? PS version: 1.6.0.14
  2. Miki, I have same bug with same PS version. Have you solved it?
  3. Hey, I can`t deal with strange thing. I have decided to use advanced stock management. So I add all products to warehouse and going to recount my warehouse. I have created a little script to count how many available orders have product A and set that quantity in ps_stock_available. So for example: product A has -3 quantity (3 active orders with total quantity = 3). (Before this update it was -1). I have made an order with A product. So now quantity: -4. I cancel with order and quantity: -1. Why? What did I forget? I have tried to look all tables in mysql and I can`t figure out where he is saving this value. I found that in order_details table it saves product_quantity_in_stock. Even I change this value it go back to old value. How it is possible? If im not using advanced stock management - it works good. But with advanced stock and stock depends on warehouse it won`t work correct. BTW: in warehouse this product has zero stock.
  4. Hey, so we have a method: public function renderView() which generates a content in selected order page. And there are a tab: Products where we see a list of order products. Every product has a row action: Edit or Delete; How to override it to add additional row action? I coudln`t find anything at AdminOrdersController. Thanks for any good information!
  5. Hey, I would like to use google analytics just for stats without orders. How to do it? I have tried to unhook some hooks and have left only this hooks: http://prntscr.com/93p0nb but still I got orders in analytics... One more question - with Google Tag assistant I visit my site and I could see: 2 pageview request on 1 visit. Is it bad? In other sites I checked that I got only 1. So what`s wrong? Im using a fresh and newest google analytics module. I have uninstalled other modules like google adwords ; google AIP. My header and footer - clean. Only facebook pixel code in header file.
  6. Hello, I im using additional payment module. After a few weeks I noticed that google analytics e-commerce statistics not showing lot of payments. So briefly, this additional module redirecting customer to their payment site and customer dont visit order-confirmation page. So I created a new hook: actionOrderValidation and copy paste hookOrderConfirmation function to my new (actionOrderValidation) hook. I add additional condition to check: if (Validate::isLoadedObject($order) && $order->module == 'ccmodule') -> do same things that did in hookOrderConfirmation (copy - paste). But after order validation I got a new inesrt in database ganalytics table, but column sent = 0. And I can`t find problem why? He got same data like in orderConfirmation hook. Using same functions. Thanks for any help or way how to deal with such problem.
  7. Hey man, is it possible to override controller and add custom row action or order products? I can`t even find where should I do it. In AdminProduct or AdminOrders controller? Thanks for any help!
  8. Hey guys, btw, how to assign carriers if I set $rule->carrier_restriction = true; ? I can see that this option in coupon activated but any carriers selected. I would like assign one carrier but couldn`t find any information in classes and etc..
  9. Hello, im looking for solution to solve google analytics module problem. In analytics I can`t see correct products names. What I see: Idole+d%C2%B4Armani ",,Ahh Bra'' liemen\u0117l\u0117" - should be: Ahh Bra liemenėlė (ė - changed to \u0117l) How to solve this? Thanks for any information or help. Im using latest and official google analytics module.
  10. Hey, I would like to talk about such action like this: on product page customer write custom text or upload photo. When customer buy this product I need to save his wrote text or photo. How its possible? In product page I dont have any info... On cart object only id_guest or id_customer if customer logged in. No cart -> id and etc.. Whats the best way to do it? Thanks
  11. Hey, I have created additional Controller - AdminPlistController. After I add a new record with - ADD NEW ( http://prntscr.com/7f9s37 ) I would like to insert custom data to other db table. Can I do it by one class? Plist controller has assigned class - MPlist where I selected table - Plist. Here I write data in Plist table after Add new submit. Im using as default ObjectModel:: definition. Is it possible to insert data to different data? For example after submit new record it insert data to Plist table and Plist_customers table ? If no I could do it in my AdminPlistController after submit data but which function use? postProccess() ? Thanks for any info, sorry for bad english skills.
  12. Hey, to my mind you made that this carrier available if cart total sum > 400 but lower than 9999999. To add free shipping for custom CARRIER create a new cart rule -> add condition 400$ and select this carrier. if u would like to make free shipping for all carriers go to carriers -> preferences and u will see.
  13. Hey friends, could someone explain me how it works? For example, I have made admin controller where I print data from database. I used fields list to take variable from database and its automatically generate a table. I add additional functions: public function renderList() { $this->addRowAction('duplicate'); $this->addRowAction('delete'); return parent::renderList(); } And also see - ADD more function. But guys, how it works? I tried to create a new class MlpdfOrders and add values to defination array (all variables from table where I put data). Create a new public function renderForm() with a new form (all inputs to create a new row). After I click add new I got error: Fatal error: Class 'MlpdfOrders' not found in localhost/ps/classes/controller/AdminController.php on line 1366 Is it any easier way to add a new row in database? Thanks for any info
  14. Hey, Ive changed my mind and using generated barcode in picture, but after all I commented a few lines maybe it helps u. $this->write1DBarcode('www.site.com', 'C39+', '', '', 20, 10, 0.4, $style, 'N'); It works , check write1DBarcode function details.
  15. Hey, im using PrestaShop multistore feature and sharing stock between three shops. Now im writting a script to update quantity and would like to get recommendations. StockAvailable::setQuantity((int)$row->id_product, $row->id_product_attribute , $count , $id_shop); Im using setQuantity method to update it, but what about shop id? If I would like to update for all shops. As I said all 3 shops sharing stock. Thanks for information!
×
×
  • Create New...