Get All products form CS-Cart - api

I'm trying to get all products from CS-Cart but I can only get all products from one page (24 by default). Anyone knows if there is a cleaner way to do this than to change the items_per_page value to a big number?
Thanks

If you set ?items_per_page=0, CS-Cart will list all products for you within a category.
If you want to display a link in the "Items per page" dropdown, it can be a little bit tricky, because you have to write a custom "sorting.tpl" template. Right now, there is no hook you can connnect.

Related

Shopify - any way to tag collections?

I'm moving a shop over to Shopify. This shop has monthly shows where one time items are offered for sale, and every show is archived on a "Past Shows" page.
Naturally, every show is a collection - such as "January 1 - January 31 2014", "February 1 - February 28 2014" and so on. This dates back about 7 years, right now there are 111 and that number increases every month.
Displaying them on their own specific page is where the question comes in. From my research it seems the best way to do something like this is using a link list, however in my testing a link list becomes unwieldy with this many links. The dashboard page for editing the link list constantly hangs; every time I add a new show it appears at the bottom of the list and then I need to drag it all the way back to the top of the page.
It works, but there must be a better way right? Is there no way to tag a collection?
You can't tag collections, but you can tag products within collections.
If I understand your situation correctly, perhaps you could tag the products in your past show collections (or at least one product in each collection) with "past-show". Then loop through the global collections variable and check for each collection if collection.all_tags contains "past-show". That would give you all the past show collections without needing to add them to a link list, and then you can display them however you want (dropdown / links / etc.).

BigCommerce: How can I customize CategoryProductListing

I'm trying to customize a product in the CategoryContent panel in BigCommerce. I want to change the markup for each product in the listing, but the markup for the entire product list is trapped in an uneditable blob :%%GLOBAL_CategoryProductListing%% (I'm getting really tired of these unchangable GLOBAL variables).
Is there any way around this so that I can put my own markup on each product in the list. I'm also open, reluctantly, to reconstruct the product list using the API, but I'm not sure how I can access the API from within a BigCommerce store. Is that possible?
I was able to identify Snippets/CategoryProductsItem.html as the file containing the markup for the individual items in a category list.
I hope this saves someone the time it took me to find the file.
The Snippets/CategoryProductsItem.html is the snippet used for grid category files. If you are using the list view, the file is Snippets/CategoryProductsItemList.html.
This file represents each product listing li. It acts as a template which loops through all the %%GLOBAL_CategoryProductListing%% information for this category. To add a feature to the category ProductList li add it to the Snippet, and it will be applied to each item.
Hope this helps.

Sort items according to features

I have a shop on PrestaShop 1.5 and I need to display products based on "features" criteria. To do this, I figured I need to modify (or clone and modify) homefeatured module. But how? I can't seem to find out what to add.
The file homefeatured.php only has $category and $products (with usage of $category). I'm totally in the dark, can someone help me out?
Do you like to show product on certain creiterial. Or you like to show special product. As homefeatured product serve the featured product. So if you add any product as featured it will show on home featured.

Display featured products on category page PRESTASHOP

I just want to show some featured products on each category page (not home page).
I thought to use features or tags. So in the back, I add to the products I want to show a "featured" tag or feature. And then in the front on each category page I display the products of that category that have that tag or feature.
What do you think is easier? and how can I achieve this? I am so lost, so I'd appreciate any guidance.
Thanks guys
Here is how I would do this:
Create a module (obviously) to extend the product class and add a featured field (as a boolean, you can also use a position field if you want to manage something like that)
Within the module it's easy to override the admin controller to add a checkbox somewhere
On the category page, create a hook to display the featured product, or just override the categoryController to get them.
And voilà! It's really easy. I just give you the steps as I won't write the code for you :) but if you need more advices feel free to ask

magento - back button (without using categories)

there are a lot of back buttons available on the market. Free and paid ones.
But the don't work on my store, because they are all category based.
That's my problem.
In my store i don't use categories, only attributes (in combination with Amasty Improved navigation).
But all back buttons are based on categories.
Can anyone help me to solve this?
I want a back button which goes back to the filtered products (by attributes).
Or does anyone know a extension for this.\
I have magento 1.6.2.
You can check it out on testwinkel.liefstoereigenwijs.nl
I'm not sure why you want to avoid using categories, but have you tried using javascript?
<a href=”#” onClick=”Javascript:history.back();”>GO back</a>
The only problem with this, is that when a user enters your product page from let's say, goolge, the user will be redirected to google.
You can also take a look at this threat: Back to previous page with header( "Location: " ); in PHP