Results 1 to 10 of 157

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Profit Markup/Margin Calculator

    Quote Originally Posted by wtashby
    Are the files that should be altered, already included in the download, and already altered? Also, is this 1.3 compatible?

    I ask because I installed the sql and uploaded the files included with the download, and it "Broke" my admin. I had to re-upload the origionals just to get into my admin.
    This is the error I get when I say that it "Broke" my admin:

    Code:
    Fatal error: Cannot redeclare zen_update_products_price_sorter() (previously declared in C:\Program Files\xampp\htdocs\store\admin\includes\functions\general.php:2495) in C:\Program Files\xampp\htdocs\store\admin\includes\functions\functions_prices.php on line 1311
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

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

    Default Re: Profit Markup/Margin Calculator

    open
    admin\includes\functions\functions_prices.php
    and comment out

    lines 1302 to 1311
    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 . "'");
    
      }
    this function is included in the core files and is whats causing your issue

  3. #3
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Profit Markup/Margin Calculator

    that is one of the files that is included in the module download. It also contains those lines. I tried to comment them out as you suggested but still get the same error.


    Fatal error: Cannot redeclare zen_parse_salemaker_categories() (previously declared in C:\Program Files\xampp\htdocs\store\admin\includes\functions\general.php:3003) in C:\Program Files\xampp\htdocs\store\admin\includes\functions\functions_prices.php on line 1327
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  4. #4
    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

  5. #5
    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



    .

  6. #6
    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

  7. #7
    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

 

 

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