Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Jul 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Can prices be added globally to a range of products or only one product at a time

    Rod,

    Your detailed description and examples saved me a lot of time. Thanks for taking the time to post that info here. Being a newbie everything takes a lot of time.
    cheers. SB

  2. #12
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Can prices be added globally to a range of products or only one product at a time

    Quote Originally Posted by SteveB2009 View Post
    Rod,

    Your detailed description and examples saved me a lot of time. Thanks for taking the time to post that info here. Being a newbie everything takes a lot of time.
    cheers. SB
    I'm glad you found the info useful. It is the reason why I prefer questions to be asked in the forum rather than PM, because the responses do often help others as well as the original poster.

    Cheers
    Rod

  3. #13
    Join Date
    Feb 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: Can prices be added globally to a range of products or only one product at a time

    Quote Originally Posted by RodG View Post
    The best/easiest way to do this would be via SQL commands. (if experienced)

    The 'difficult' part will be figuring out what query string to use to select any given 'range'.

    Zencart itself has no inbuilt functionality to perform global price changes, however you may find the following module useful.

    http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_41&products_id=101

    Cheers
    Rod
    Hi Rod,
    I would like to change some prices for just one manufacturer and have installed that quick updates patch, but I don't seem to see anything diferent. Where am i going wrong? Being able to globally change prices for a supplier would be very handy.
    Thanks,
    Andrew

  4. #14
    Join Date
    May 2010
    Location
    Whitchurch, Hampshire, UK
    Posts
    71
    Plugin Contributions
    0

    cart error Re: Can prices be added globally to a range of products or only one product at a time

    Hi Rod,

    I was reffered to this thread from one I posted just now. Here's what I wrote:

    I want to increase a lot of my prices by £1, but am loathe to go to every single one and add £1 to each price.
    Also, I only want to increase the price of products that are currently below £6.

    I can imagine there's an easy bit of SQL code to use, but I'm not to familiar with it myself.
    So, I just need to work out what SQL I need to run in order to do this.
    Would something like this work?

    Code:
    update `zen_products` increase  `products_price` + 1.00 WHERE `products_price` < 6.00
    Not entirely sure that's correct, but that's just using my newly found (albeit vague) knowledge of programming (currently in the process of Python for a different project)

    Any help would be appreciated

    Cheers
    The iShop: Make it Yours

    Apple, BlackBerry, HTC, Samsung and Audio Accessories www.the-ishop.co.uk

  5. #15
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Can prices be added globally to a range of products or only one product at a time

    Quote Originally Posted by caesartrading View Post
    So, I just need to work out what SQL I need to run in order to do this.
    Would something like this work?

    Code:
    update `zen_products` increase  `products_price` + 1.00 WHERE `products_price` < 6.00
    Not entirely sure that's correct, but that's just using my newly found (albeit vague) knowledge of programming (currently in the process of Python for a different project)
    For PHP it is more like:
    Code:
    update `zen_products` set  `products_price` = `products_price` + 1.00 WHERE `products_price` < 6.00 ;
    WARNING: This is just off the top of my head. Don't be too surprised if its not correct. I can never remember when/where quotes are needed or whether they need to be single or double.

    Cheers
    Rod
    Last edited by RodG; 8 Aug 2011 at 03:36 PM.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 single product (only one of) can be added to cart multiple times
    By gandalfsmith in forum Bug Reports
    Replies: 4
    Last Post: 6 Mar 2013, 11:55 PM
  2. Replies: 2
    Last Post: 16 Jan 2013, 05:07 AM
  3. Globally Changing prices of products.
    By Traceygirl in forum Setting Up Categories, Products, Attributes
    Replies: 12
    Last Post: 26 May 2011, 03:31 PM
  4. How Can I change All products prices in one time ?
    By darknes in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 29 Nov 2008, 01:59 PM
  5. Changing price range to time range (in Advanced Search)
    By jeffmic in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Sep 2006, 07:12 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