Page 1 of 2

[vQmod] Show Units Sold

Posted: Wed Mar 09, 2011 3:44 pm
by fido-x
Following on from this topic, this vQmod will display the number of units sold for each product (if any have been sold) where the order status is set to "Complete".

On the product page, shows the number of units sold just above the manufacturer.
On the category page, show the number of units sold below the price.

Re: [vQmod] Show Units Sold

Posted: Fri Jan 06, 2012 4:32 am
by kxs1
Successfully installed vqmod v. 2.1.5.opencart. Downloaded the units_sold.xml script. moved it to the vqmod's xml folder on the server. Tested, it didn't work! What am I doing wrong? I have installed OpenCart v.1.5.1.3. Thanks for your help.

Re: [vQmod] Show Units Sold

Posted: Fri Jan 06, 2012 9:08 am
by fido-x
That's for an older version of OpenCart (1.4.9.x, I think) and is not compatible with 1.5.x.

I'll have look at updating it (when I get a chance).

Re: [vQmod] Show Units Sold

Posted: Sat Jan 07, 2012 12:20 am
by kxs1
Thanks Fido-x. I appreciate your time, or if there are any guidelines I can read/follow, I'll try upgrading it.

Re: [vQmod] Show Units Sold

Posted: Mon Jan 09, 2012 12:46 am
by kxs1
Any update to the Units_sold.xml support for the OpenCart 1.5.1.3?

Re: [vQmod] Show Units Sold

Posted: Tue Jan 24, 2012 10:23 pm
by acadterror
Any update for latest version of Opencart?

Re: [vQmod] Show Units Sold

Posted: Wed Jan 25, 2012 3:28 am
by webvet
Hope I am not treading on Fido-x's toes, but have this working and tested now for v1.5.1.2 and v1.5.1.3 on a default theme. Almost there, will finish testing overnight and upload tomorrow all being well...

If in the meantime you see this Fido/other mod - feel free to wrap my knuckles and post nasty comments if this isn't the done thing :)

Re: [vQmod] Show Units Sold

Posted: Wed Jan 25, 2012 4:49 pm
by webvet
Ok - I haven't done anything with the basic function of this mod, which worked fine for v1.4 but only adjusted the .tpl files so that the original functioning is exactly the same.

Displays number of units sold (transactions marked as complete):
On the Product Page just about the Manufacturer
On the Category Page just below the price

I have tested it on v1.5.1.2 and v1.5.1.3 on default theme and working fine.

Any problems feel free to post back here!

Re: [vQmod] Show Units Sold

Posted: Thu Jan 26, 2012 9:47 pm
by acadterror
thanks so much for the update :)

Re: [vQmod] Show Units Sold

Posted: Fri Jan 27, 2012 12:23 am
by webvet
You're welcome :D

I have had so much help on the forum over the last 12-18 months that am just trying to give something back (he says crossing his fingers that the mod works...)

Re: [vQmod] Show Units Sold

Posted: Sun Feb 26, 2012 2:38 am
by naz_eg
Is there any way to show all orders (not only completed orders). I want to show how many products sold in PREORDER status too but i couldn't make it.

...WHERE o.order_status_id = '5' AND op.product_id = '" . (int)$product_id . "'");

I see order status 5 selected but can't add other statuses or set all. Can someone help me to show all order status or only COMPLETED+PREORDER statuses?

Thank you in advance.

Re: [vQmod] Show Units Sold

Posted: Wed Aug 15, 2012 4:52 pm
by mrjave
good day,

it is not showing on V1.5.3.1.
any advice / update to this for the lastest version (V1.5.3.1)?

many thanks in advance.

Jave

Re: [vQmod] Show Units Sold

Posted: Sun Mar 31, 2013 7:38 am
by shukshyna
Works great for 1.5.4 (added manually for products page),
now trying to make it work for modules (e.g. bestseller). Tried to adjust bestseller controller file but it gives me only errors..

Any hint would be greatly appreciated!!!

Re: [vQmod] Show Units Sold

Posted: Wed Apr 03, 2013 2:14 pm
by i2Paq
shukshyna wrote:Works great for 1.5.4 (added manually for products page)
Please explain?
now trying to make it work for modules (e.g. bestseller). Tried to adjust bestseller controller file but it gives me only errors..

Any hint would be greatly appreciated!!!
I will see what I can do.

Re: [vQmod] Show Units Sold

Posted: Thu May 02, 2013 6:37 pm
by oc5
Work like charm with my 1.5.1.3 :)
May i know who to change the font color & size please? Tq

Re: [vQmod] Show Units Sold

Posted: Thu May 02, 2013 7:22 pm
by oc5
Finally i manage to change the "Unit Sold" text color.

Code: Select all

	<file name="catalog/view/theme/*/template/product/product.tpl">
		<operation>
			<search position="before" index="1"><![CDATA[
			<?php if ($manufacturer) { ?>
			]]></search>
			<add trim="true"><![CDATA[
			<?php if ($units_sold) { ?>
			<span style="color: red;"><?php echo $text_units_sold; ?> <?php echo $units_sold; ?></span><br />
			<?php } ?>
			]]></add>
		</operation>
	</file>

Re: [vQmod] Show Units Sold

Posted: Thu May 02, 2013 7:25 pm
by oc5
i've another thought of this Mod are displaying the "UNIT SOLD" at the product & category page only, wondering how it can be display at (Featured, Latest, & other module )? anyone can help me with this? very much thanks.

Re: [vQmod] Show Units Sold

Posted: Sat May 25, 2013 9:27 am
by f1br3opt1c
Hi,

First of all thanks alot for the mod. Secondly i'm having slight trouble with it. Products that are displayed in the sub category have a blank space in between the price and "Unit Sold" display. It looks ugly as the alignment does not match with products that have sold none. Anyway to bring the Unit Sold alignment higher to eliminate the blank space?

Re: [vQmod] Show Units Sold

Posted: Tue Sep 03, 2013 12:01 am
by kevinlfc
Thank you for unit_sold.xml, It is great for OC, I am using OC 1.5.4 and it is appaer on product page.

Is it possible show it on box-product of front page?

Thank you!

Re: [vQmod] Show Units Sold

Posted: Tue Nov 26, 2013 11:52 am
by postcardcollecting
Hi ... I tried this vQmod with version Version 1.5.3.1 and nothing happened ... I uploaded the xml file to the vQmod folder. Was there anything else to do? Does anyone wish to share their site so I can see what to expect. I'd love to get this to work. Thanks All !