Cart2 and SKU?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
User avatar
thomahawk
Power Poster
Power Poster
Posts: 312
Joined: Fri Jul 25, 2008 10:13 am

Cart2 and SKU?

Post by thomahawk »

One problem solved, here comes the next one:

I have product listings and details working, but can not display the Cart2 modules objects like an "add to cart" field.

I put this into the products templates for summary or detail:
{Cart2 sku=$entry->sku}
or
{Cart2 action='mycart'}
Exactly like described in Cart2 help.

None of them displays.

And I did set Cart2 in eCommerce/Basismodule cart settings. Now in help it also says "requires SKUs be enabled". I don't even know what an SKU is. Searching in forum for SKU shows 0 results!
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Cart2 and SKU?

Post by velden »

Again, I don't know the suite. But:

http://forum.cmsmadesimple.org/viewtopi ... 55#p310155

Product Manager Help:
SKU and Quantity Handling

This module provides a unique field for each item (and item option). The SKU value can be used to uniquely identify an item or option. When using this system as an e-commerce system each item and option is required to have a SKU.
Advanced tab of Product item.

I think SKU refers to https://en.wikipedia.org/wiki/Stock-keeping_unit
User avatar
thomahawk
Power Poster
Power Poster
Posts: 312
Joined: Fri Jul 25, 2008 10:13 am

Re: Cart2 and SKU?

Post by thomahawk »

Thanks, velden, but I've gone through that thread – it tells me nothing.

I see no reference to SKU anywhere in settings or entry forms of products module. Locigally the Article-Nr. field should be used for something like that. But setting them to individual numbers, still no "add to cart" is displayed. Also if I create a field for the products and call it "SKU" and enter individual IDs there, nothing changes.

Update: There is a mention of SKU in a very hidden input form in "product edit form -> button "edit product options" which looks like some kind of stock keeping. But after populating those fields, still no"add to cart".

Regards
Thom
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Cart2 and SKU?

Post by velden »

From my post:
Advanced tab of Product item.
products_sku.jpg
products_sku.jpg (21.67 KiB) Viewed 3757 times
User avatar
thomahawk
Power Poster
Power Poster
Posts: 312
Joined: Fri Jul 25, 2008 10:13 am

Re: Cart2 and SKU?

Post by thomahawk »

OK, I see. That one in my setting is called Artikel-Nr. (in German). Its the one I said would be logical to use for this. And I made sure its populated on all articles with system-wide unique ID. But it still does not display the "add to cart" function.
User avatar
thomahawk
Power Poster
Power Poster
Posts: 312
Joined: Fri Jul 25, 2008 10:13 am

Re: Cart2 and SKU?

Post by thomahawk »

OK, now I get somewhere! I got the "add to cart" on my product pages.

The cart2 module help says "SKU has to be activated" in Products and "each product must have individual SKU".

I already had selected Cart2 in the ecommerce base settings. But I never found anything that says "activate SKU". Maybe because my version is German. In Products it has a field "Article Number is mandatory - yes or no".

Like I found out before, SKU is "Article number" in the German version (which makes more sense, because "Stock Keeping Unit" would be how many items are available of this article, not an article ID, but Cart2 requires a unique ID, not a stock quantity.)

Well, as it seems, "Article Number is mandatory - yes or no" seems to really mean "activate SKU", because after I set this to yes, the "add to cart" fields do appear on the pages.

I hope this may be of help for others who use the German backend. (Still strange that searching for "SKU" in the forum shows no results.)
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Cart2 and SKU?

Post by velden »

(Still strange that searching for "SKU" in the forum shows no results.)
I guess search function does allow for short strings but forgets to mention that.

E.g. 'sku cart' gives many results.
User avatar
thomahawk
Power Poster
Power Poster
Posts: 312
Joined: Fri Jul 25, 2008 10:13 am

Re: Cart2 and SKU?

Post by thomahawk »

OK, thanks. I did not think about that, because usually longer search parameters result in less results.

Now, tying the cart products list into a formbuilder form for easy checkout, it looked promising. I actually managed to get the products data displayed on the page in a field "Modulschnittstelle" (module interconnect or something like that). I put this tag in
{Cart2 action='viewcart' viewcarttemplate='bestellform'}
and it works for the form page in frontend.

Unfortunately that same data does not arrive in the email sent by formbuilder. I made sure that field is included in the html email template.

A help text for that formbuilder field says, the template from the other module needs "$FBvalue" in it, unfortunately I dont understand how this works and where to put it. I did not yet set it in any way, nevertheless it worked so far and the data got passed along into formbuilder. Is "$FBvalue" still needed?
Locked

Return to “Modules/Add-Ons”