Results 1 to 10 of 157

Hybrid View

  1. #1
    Join Date
    May 2006
    Posts
    68
    Plugin Contributions
    0

    Default Re: Profit Markup/Margin Calculator

    find
    Code:
    function zen_update_products_price_sorter($product_id) {
        global $db;
    
        $products_price_sorter = zen_get_products_actual_price($product_id);
    
        $db->Execute("update " . TABLE_PRODUCTS . " set
             products_price_sorter='" . zen_db_prepare_input($products_price_sorter) . "'
             where products_id='" . $product_id . "'");
    
      }
    in admin\includes\functions\ functions_prices.php


    and replace with
    Code:
    /*function zen_update_products_price_sorter($product_id) {
        global $db;
    
        $products_price_sorter = zen_get_products_actual_price($product_id);
    
        $db->Execute("update " . TABLE_PRODUCTS . " set
             products_price_sorter='" . zen_db_prepare_input($products_price_sorter) . "'
             where products_id='" . $product_id . "'");
    
      }*/
    then make sure to save and re-upload....

    then close browser and reopen the browser window to clear cache

    I know that file is included in the download however that function is loaded by zen cart by default, so it dosnt need to be there in the new file

  2. #2
    Join Date
    Dec 2003
    Posts
    293
    Plugin Contributions
    0

    Re: Profit Markup/Margin Calculator

    Hi

    Download the latest version. I have fixed the bugs and cleaned out the wrong files.

    Download Profit Markup/Margin Calculator v1.11 ( Zencart v1.3.0.1 Compatible)

    USE THIS FILE and read the Readme File and follow it. Only use the files provided in the download, if you have a fresh Zencart v1.3.0.1 Install.


    ************
    Download Link
    ************

    Profit Markup/Margin Calculator v1.11



    .

  3. #3
    Join Date
    Nov 2005
    Location
    Manchester, UK
    Posts
    98
    Plugin Contributions
    0

    Re: Profit Markup/Margin Calculator

    Quote Originally Posted by Farrukh
    Hi

    Download the latest version. I have fixed the bugs and cleaned out the wrong files.

    Download Profit Markup/Margin Calculator v1.11 ( Zencart v1.3.0.1 Compatible)

    USE THIS FILE and read the Readme File and follow it. Only use the files provided in the download, if you have a fresh Zencart v1.3.0.1 Install.
    I have just compared the files, and have updated the changes, but still i get the error :

    Warning: Missing argument 2 for display_price() in /.../catalog/_XadminX/includes/classes/currencies.php on line 70

  4. #4
    Join Date
    Dec 2003
    Posts
    293
    Plugin Contributions
    0

    Default Re: Profit Markup/Margin Calculator

    Quote Originally Posted by plowe1
    I have just compared the files, and have updated the changes, but still i get the error :

    Warning: Missing argument 2 for display_price() in /.../catalog/_XadminX/includes/classes/currencies.php on line 70

    The problem seems to be with your present setup of Zencart. Have you installed any other contributions or made any changes to the Zencart.

    The error you mentioned cannot be present, since there is no changes involved in /classes/currencies.php

  5. #5
    Join Date
    Nov 2005
    Location
    Manchester, UK
    Posts
    98
    Plugin Contributions
    0

    Idea or Suggestion Re: Profit Markup/Margin Calculator

    my zencart is V 1.3.0.1, and is a clean install, there are no other modifications on those files already.


    everything has worked fine until i uploaded this mod.. so i can't see how it can't not be something to do with this mod....

    this error is displaying in the cost section of the products display in the admin side...

    as i suggested earlier, not being a coder, but a wild guess that it must need some sort of refferenct to $products_cost or something like that adding into currencies.php ???


    this would be a useful mod, and i hope between us all, we can get this issue fixed..



    Simon-m has gone quiet on this topic... have you got it fixed simon ?

  6. #6
    Join Date
    Dec 2003
    Posts
    293
    Plugin Contributions
    0

    Default Re: Profit Markup/Margin Calculator

    Quote Originally Posted by plowe1
    my zencart is V 1.3.0.1, and is a clean install, there are no other modifications on those files already.


    everything has worked fine until i uploaded this mod.. so i can't see how it can't not be something to do with this mod....

    this error is displaying in the cost section of the products display in the admin side...

    as i suggested earlier, not being a coder, but a wild guess that it must need some sort of refferenct to $products_cost or something like that adding into currencies.php ???


    this would be a useful mod, and i hope between us all, we can get this issue fixed..



    Simon-m has gone quiet on this topic... have you got it fixed simon ?

    I cannot reproduce the problem.

  7. #7
    Join Date
    Nov 2005
    Location
    Manchester, UK
    Posts
    98
    Plugin Contributions
    0

    Re: Profit Markup/Margin Calculator

    i did change define('TEXT_PRODUCTS_PRICE_MARGIN_GROSS', 'Gross Margin $:'); to be define('TEXT_PRODUCTS_PRICE_MARGIN_GROSS', 'Gross Margin £:');


    but this wouldn't make a difference would it ???

    can u paste a copy of your currencies.php so i can compare???

 

 

Similar Threads

  1. Profit Markup Calculator for 1.38?
    By mrcastle in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 15 Mar 2010, 08:41 AM
  2. Profit/Margin Calculator - remove
    By gsdcypher in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 Mar 2007, 12:41 AM
  3. Profit Markup/Margin Calculator - Product Type
    By simon-m in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 5 Jul 2006, 06:00 PM
  4. Profit Margin Calculator
    By simon-m in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 12 Jun 2006, 09:25 PM

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