Results 1 to 10 of 1916

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    Default Re: Edit Orders v4.0 Support Thread

    Cindy, I wonder if the way to go here is just add up the line items to get the total, rather than depending on the individual machinations of mods (which were designed to run on the catalog side) updating $order->info['total'].
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,940
    Plugin Contributions
    96

    Default Re: Edit Orders v4.0 Support Thread

    Quote Originally Posted by swguy View Post
    Cindy, I wonder if the way to go here is just add up the line items to get the total, rather than depending on the individual machinations of mods (which were designed to run on the catalog side) updating $order->info['total'].
    @swguy, I've also wondered why that path wasn't taken with the design ... although EO has been around (in various forms) since dinosaurs roamed the earth, so at this point it's not so much a design as a go-with-the-flow.

  3. #3
    Join Date
    Jun 2012
    Posts
    481
    Plugin Contributions
    0

    Default Re: Edit Orders v4.0 Support Thread

    Cindy,
    I hate to tell you, but I found another problem in Edit Orders 4.3.1. If you add a product to an order or change the quantity of an item in the order, the change is made even if there is insufficient stock in inventory. Might be nice to bring up a warning message if there is insufficient stock when adding a product or increasing the quantity of a product.
    Dave

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,940
    Plugin Contributions
    96

    Default Re: Edit Orders v4.0 Support Thread

    Quote Originally Posted by Dave224 View Post
    Cindy,
    I hate to tell you, but I found another problem in Edit Orders 4.3.1. If you add a product to an order or change the quantity of an item in the order, the change is made even if there is insufficient stock in inventory. Might be nice to bring up a warning message if there is insufficient stock when adding a product or increasing the quantity of a product.
    Dave
    Dave, thanks for the report. When I get back to my EO investigations, I've added that to the list!

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    Default Re: Edit Orders v4.0 Support Thread

    Edit Orders 4.3.1 and my mods (Quantity Discounts, Better Together, et. al.):

    This seems to work. In the function process() in the code file in includes/modules/order_total (e.g. includes/modules/order_total/ot_quantity_discount.php for Quantity Discounts)

    Change

    Code:
                   if ($this->calculate_tax != 'VAT') {
                      $order->info['total'] -= $od_amount[$key];
                   }
    to

    Code:
                   if (!IS_ADMIN_FLAG) {
                      if ($this->calculate_tax != 'VAT') {
                         $order->info['total'] -= $od_amount[$key];
                      }
                   }
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,940
    Plugin Contributions
    96

    Default Re: Edit Orders v4.0 Support Thread

    Quote Originally Posted by swguy View Post
    Edit Orders 4.3.1 and my mods (Quantity Discounts, Better Together, et. al.):

    This seems to work. In the function process() in the code file in includes/modules/order_total (e.g. includes/modules/order_total/ot_quantity_discount.php for Quantity Discounts)

    Change

    Code:
                   if ($this->calculate_tax != 'VAT') {
                      $order->info['total'] -= $od_amount[$key];
                   }
    to

    Code:
                   if (!IS_ADMIN_FLAG) {
                      if ($this->calculate_tax != 'VAT') {
                         $order->info['total'] -= $od_amount[$key];
                      }
                   }
    Thanks, @swguy. I'm in the process of vetting that integration; I'll give that change a go.

  7. #7
    Join Date
    Feb 2016
    Location
    Canada
    Posts
    190
    Plugin Contributions
    0

    Default Re: Edit Orders v4.0 Support Thread

    Hello,

    I have added the products price to my order confirmation email. The issue I have is that it is not formatted as currency ($-Canadian). See below:

    3 x KARMA Wellness Water - Probiotics Blueberry Lemonade 12 x 532ml Plastic (KAR532PBL) @ 35.2 = $105.60

    I want the price 35.2 to appear as $35.20 and don't know the syntax.

    Below in red is what I changed/added in includes/classes/order.php

    \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    \$sql_data_array = array('orders_id' => $zf_insert_id,
    'products_id' => zen_get_prid($this->products[$i]['id']),
    'products_model' => $this->products[$i]['model'],
    'products_name' => $this->products[$i]['name'],
    'products_description' => zen_get_products_description($this->products[$i]['id']), //added by JM
    'products_price' => $this->products[$i]['price'],
    'final_price' => $this->products[$i]['final_price'],
    'onetime_charges' => $this->products[$i]['onetime_charges'],
    'products_tax' => $this->products[$i]['tax'],
    'products_quantity' => $this->products[$i]['qty'],
    'products_priced_by_attribute' => $this->products[$i]['products_priced_by_attribute'],
    'product_is_free' => $this->products[$i]['product_is_free'],
    'products_discount_type' => $this->products[$i]['products_discount_type'],
    'products_discount_type_from' => $this->products[$i]['products_discount_type_from'],
    'products_prid' => $this->products[$i]['id']);
    zen_db_perform(TABLE_ORDERS_PRODUCTS, $sql_data_array);
    \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


    I also added the following in red:

    \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    $this->products[$index] = array('qty' => $products[$i]['quantity'],
    'name' => $products[$i]['name'],
    'model' => $products[$i]['model'],
    'tax_groups'=>$taxRates,
    'tax_description' => zen_get_tax_description($products[$i]['tax_class_id'], $taxCountryId, $taxZoneId),
    'price' => zen_round($products[$i]['price'],$decimals),
    'final_price' => zen_round($products[$i]['price'] + $_SESSION['cart']->attributes_price($products[$i]['id']), $decimals),
    'onetime_charges' => $_SESSION['cart']->attributes_price_onetime_charges($products[$i]['id'], $products[$i]['quantity']),
    'weight' => $products[$i]['weight'],
    'products_priced_by_attribute' => $products[$i]['products_priced_by_attribute'],
    'product_is_free' => $products[$i]['product_is_free'],
    'products_discount_type' => $products[$i]['products_discount_type'],
    'products_discount_type_from' => $products[$i]['products_discount_type_from'],
    'id' => $products[$i]['id'],
    'rowClass' => $rowClass);
    \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


    the line that displays details of the product order has been changed to the following:

    $this->products_ordered .= $this->products[$i]['qty'] . ' x ' . $this->products[$i]['name'] . ' ' .zen_get_products_description($this->products[$i]['id']) . ' ' . ($this->products[$i]['model'] != '' ? ' (' . $this->products[$i]['model'] . ') ' : '') . '@ ' .$this->products[$i]['price']. ' = ' .

    Any help is appreciated.

    Thanks in advance!

 

 

Similar Threads

  1. v150 Super Orders v4.0 Support Thread for ZC v1.5.x
    By DivaVocals in forum Addon Admin Tools
    Replies: 817
    Last Post: 29 Apr 2026, 07:53 PM
  2. v150 Orders Status History -- Updated By [Support Thread]
    By lat9 in forum Addon Admin Tools
    Replies: 34
    Last Post: 29 Jul 2019, 07:05 PM
  3. Edit Orders v3.0 for ZC 1.3.9 [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 656
    Last Post: 18 Apr 2016, 06:28 PM
  4. v139h Super Orders v3.0 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1018
    Last Post: 28 Apr 2014, 11:38 PM
  5. RE: Super Orders v3.0 Support Thread
    By Johnnyd in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 22 Jun 2011, 09:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg