Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum

Hide Qty Available

(11 posts) (6 voices)
  • Started 1 year ago by cflyrun
  • Latest reply from kmk293
  • Possible Solutions (Related Topics):
    1. Products/Store Page URL - how to hide a product
    2. wp_eStore_APR expiry=0 status=unexpired tag hides streaming video
    3. Affiliate plugin - hide the ap_id after it arrives at your website?
    4. Mass Delete Affiliates not available
    5. Lightbox Ultimate - show_logo="0" doesn't hide youtube logo

Tags:

  • Available Qty
  • fancy2
  • hide
  • Hide Quantity
  • inventory
  • qty
  • quantity
  • video on demand
  • video save
12Next »
  1. cflyrun
    Member

    Hi there,

    I'd like to hide the quantity available from customers - I want to *use* inventory control, I just don't want people to be able to see how many are available. I use this for seminars and workshops, and if people see there are a lot available, they don't sign up as quickly as I'd like ;) Then there's a rush at the last moment!

    I can edit code,

    Thanks,
    Daisy

    Posted 1 year ago #
  2. amin007
    Key Master

    I have a feeling you are using the fancy1 display and you don't want to show the "Available Qty" in that display. If my guess is correct then open the "eStore_misc_functions.php" file and search for the following lines:

    if (!empty($ret_product->available_copies))
        $output .= '<br />'.ESTORE_AVAILABLE_QTY.': '.$ret_product->available_copies;

    Once you find it just delete it and that will do the job.

    Posted 1 year ago #
  3. cflyrun
    Member

    Yes, I'm using the fancy display but don't want to show Available Qty.

    Thanks for the code edit!

    Daisy

    Posted 1 year ago #
  4. Chris

    Thanks - Yes, I'm also using Fancy1 display and this little fix did the job. :)

    Posted 1 year ago #
  5. Cai

    Hello.

    I would like to remove the " Availabe Qty " from being displayed in fancy2 - I would still like to limit the available copies using the inventory control though.

    Can I do this using the same method described above?

    Thanks!

    Posted 10 months ago #
  6. Ivy
    Administrator

    Hi, In the "eStore_misc_functions.php" file search for the following

    if (!empty($ret_product->available_copies))

    You will need to go to the 2nd occurrence (this should be under the following code section "function show_product_fancy_style2")

    Once you find this code delete the following:

    if (!empty($ret_product->available_copies))
        $output .= '<br /><strong>'.ESTORE_AVAILABLE_QTY.': </strong>'.$ret_product->available_copies;
    Posted 10 months ago #
  7. Cai

    Thats great Ivy. Thank you :)

    Posted 10 months ago #
  8. Cai

    Update. This did not work quite as expected. :(

    It does remove the available quantity, but it messes up the styling of the fancy display and even the sidebar widgets. Not sure what I am doing wrong, I know nothing of php.

    Thanks

    Posted 10 months ago #
  9. Ivy
    Administrator

    Sorry about that, an extra line got in the code when I copied it. I have revised the above code. Please redo the modification using the code above.

    Note: Please make sure to undo the first modification as this removed an extra line of code.

    Posted 10 months ago #
  10. kmk293
    Member

    Related to this, I would like to change the text of "Available Qty" within Fancy1, Fancy2, and Fancy3 displays. I've searched through a ton of the php files but can't seem to locate it. Thanks!

    Posted 6 months ago #

RSS feed for this topic

12Next »

Reply »

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin