Jump to content

bhargavlalo

Members
  • Posts

    7
  • Joined

  • Last visited

1 Follower

About bhargavlalo

  • Birthday 05/05/1988

Profile Information

  • Location
    Rajkot
  • Interests
    Depends on mood...
  • Activity
    Developer

Recent Profile Visitors

240,026 profile views

bhargavlalo's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Hello, I am using below code for cart creation and inserting carrier. Carrier is set perfectly in the cart but in validateOrder() method another carrier set. $cart = new Cart(); $cart->id_shop_group = 1; $cart->id_shop = 1; $cart->id_customer = $this->id_customer; $cart->id_address_invoice = $this->id_billing_address; $cart->id_address_delivery = $this->id_shipping_address; $cart->id_carrier = 9; $cart->delivery_option = @serialize(array($this->id_shipping_address => '9,')); $cart->id_lang = 1; $cart->id_currency =1; $cart->secure_key = $customer->secure_key; $cart->recyclable = 0; $cart->gift = 0; $cart->add(); Anyone has a good idea to set the carrier in order which we set in cart?
  2. Hello, 1)Option Go to backend side -> Preference -> CMS See ID 22 (roof-cleaning) Delete this record pernamently. 2)Option Go to backend side -> Preference -> CMS See ID 22 (roof-cleaning) Click on Edit button In edit page See One fields "Displayed" set it "NO" Try it Thanks Bhragav Anadkat @bhargavlalo
  3. You can use below code for create product combination. It may help you. $id_product=14; $id_language=1; $product = new Product($id_product, true, $id_language); // list of attribute value ids.. $combinationAttributes[] = 2; $combinationAttributes[] = 5; if(!$product->productAttributeExists($combinationAttributes)) { $price = 1; $weight = 100; $ecotax = 7; $unit_price_impact=""; $quantity = 1; $reference = ""; $supplier_reference = ""; $ean13 = ""; $default = false; $idProductAttribute = $product->addProductAttribute((float)$price, (float)$weight, $unit_price_impact, (float)$ecotax, (int)$quantity, "", strval($reference), strval($supplier_reference), strval($ean13), $default, NULL, NULL); $product->addAttributeCombinaison($idProductAttribute, $combinationAttributes); } [spam-filter]bhargavlalo
  4. Hello, I want to create one module for import orders utility for my client's website. It is on Core PHP based. I konw Prestashop module but I have no any knowledge of its database. Anyone can help me to create import order module. Note: I have used web service. It is working perfectly but i want to create module. Thanks Bhargav Anadkat
×
×
  • Create New...