Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2011
    Posts
    50
    Plugin Contributions
    0

    Default An Exclusive or "Buy Out" Attribute

    Hi,

    I have a Zen cart selling stock photos. I have used the mod in this post: http://www.zen-cart.com/forum/showthread.php?t=176758

    the mod forces a decrement of the stock levels for downloadable items sold.

    I am thinking of introducing a new attribute for an exclusive license which would be equivalent to a buy out. This can only happen if there are no other instances of that product previously sold.

    A check would need to be made that current stock level = original stock level so that the "Exclusive" Attribute can display. After an exclusive purchase the stock level would have to be reduced to zero to prevent further sales.

    How difficult would this be?

    Thanks,
    Ric

    v 1.3.9h

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: An Exclusive or "Buy Out" Attribute

    As most of your items will be downloadable, you can incorporate in the admin the stock tracking but also allow purchase if stock is less than one

    Make them all a stock of one

    Then you will need to add code - - if/else - - to check if stock is no longer one - - meaning that someone has purchased it one or more times and the exclusive is no longer viable

    I would start with includes/classes/shopping_cart.php

    As this is not an overrideable file - - maintain an original and comment your additions
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2011
    Posts
    50
    Plugin Contributions
    0

    Default Re: An Exclusive or "Buy Out" Attribute

    Thank you for your reply.

    Yes, I think the logic is fairly straightforward but it will take some time to work my way through the code.

    In fact any nominal amount of stock should work - providing the key test is against that starting number and no other.

    Thanks for pointing me in the right direction.

    Regards,
    Ric

 

 

Similar Threads

  1. Buy now button with default "attribute"
    By ronswayoflife in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 25 Nov 2011, 03:43 AM
  2. Extra "Buy Now" buttons for Buy 1, Buy 2, Buy 3, Buy 4 etc...
    By AndyVI in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Mar 2011, 06:15 PM
  3. Automatically Overlay a "Sold Out" on Attribute which is Out of Stock
    By Stenrique in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 10 Feb 2007, 06:54 PM
  4. Need an "Exclusive" image tag like "Free"
    By HinterWelt2 in forum General Questions
    Replies: 2
    Last Post: 8 Jan 2007, 04:12 AM
  5. "Sold out" won't replace "Buy Now"
    By Donnettacb in forum Basic Configuration
    Replies: 22
    Last Post: 15 Nov 2006, 01:27 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR