So yeah sue me if I SHOULD know this.. I don't and need some help.. Where oh WHERE do I turn off the best seller counts??
So yeah sue me if I SHOULD know this.. I don't and need some help.. Where oh WHERE do I turn off the best seller counts??
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
******* deleted, misread the request ********
The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Open "/includes/classes/order.php" and take a look at line #748. Appears you may be able to comment this out (will also have to do for "Edit Orders") to stop Zen Cart from updating the products_ordered field. However this will break the "admin" statistics for products purchased.
You could also open "/includes/templates/your_template_name/sideboxes/tpl_best_sellers.php" and remove where it adds the count (do not see this displayed in my stock ZC install).
The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker
And of course see this after I posted how to ADD the counts... Subsequently deleted my answer... And added how to stop them from incrementing!
Good thing Firefox still had my old response in the cache!
"Oh WHERE oh WHERE can it be?
Not in any settings that I can see,
But perhaps we can code something."
Could not resist ;)
In "/includes/modules/sideboxes/best_sellers.php" add the following (around line 68):
In your template's copy of "/includes/templates/your_template_name/sideboxes/tpl_best_sellers.php" change the following (around line 15):Code:$bestsellers_list[$rows]['name'] = $best_sellers->fields['products_name']; $bestsellers_list[$rows]['count'] = $best_sellers->fields['products_ordered']; $best_sellers->MoveNext();
I've not tested the changes, but should hopefully point you in the right direction. Feel free to make changes and provide updated code with a better working example :)Code:for ($i=1; $i<=sizeof($bestsellers_list); $i++) { $content .= '<li><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '(' . zen_output_string((string)$bestsellers_list[$i]['count']) . ')</a></li>' . "\n"; }
The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker
**deleted**
Looks like today is the "crossed posts" day!!!
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Bookmarks