Loading...
 
Features / Usability

Features / Usability


Strange cart behaviour

Germany

I see a strange behaviour of Tiki Cart on 18.5, but I suspect it is not a bug, but an error on my (manual) implementation.

Users (members of Customers group) do not see product categories. "Category" gets written, but no content comes to this keyword... Furthermore, when users who are also Managers want to add a new product, they cannot set the category (resulting in not being able to add the product, because category is mandatory). No such problems as admin!

So I dug deep into permissions and compared them to a fresh install (actually a show2 instancce...) that had the profile applied. I see no difference!

I can resolve the issue by granting tiki_p_view_category to anonymous, and by removing the mandatory flag from the category field. But the profiled show2 installation does it without those two "hacks". So what might I be missing? The category field of the products tracker is, as default, set to be visible to all. What's possibly blocking the category display? Where can I look next?

Thanks
hman

Germany

Since that question got answered on dev.tiki.org, I have another question that I don't want to bloat dev.tiki.org with.

I am struggling with expanding the books in the products tracker with the international standard book number (ISBN, ISSN for magazines).

I added a text field for that, entered the data. and it looks fine in both item editor and lists, but I cannot get product cart (or carts) to show the data.

I gave product_ISBNISSN as permanent name, and try to call this on cart product with
(FORMAT(name="ISBN/ISSN"))(display name="tracker_field_product_ISBNISSN")(FORMAT)

(parantheses modified so it provokes no conflicts here). The same syntax the other field use, but no output comes for the book numbers...

Germany
Bernard Sfez / Tiki Specialist wrote:

Did you try without the "/" in the field name ?
I suspect it is the problem.


Yes, I tried that, still doesn't work... To be sure I have no "invisible" special character somewhere in the string, I even copied and pasted it from the field definition and appended it to the start "tracker_field_product_".

I suspect there is some logic someplace else, because somewhere must be the logic that replaces the 0 in stock with "awaiting stock" in tracker_field_product_stock. Maybe that logic doesn't know how to handle ISBN. I should have a look at the template file, I guess...

Czech Republic
  1. have you rebuilt your Search Index?
  2. you can use PluginCode to display the code here
  3. if you have new topic (issue) it is better to start new topic thread


luci

Oliver Kluge wrote:

Since that question got answered on dev.tiki.org, I have another question that I don't want to bloat dev.tiki.org with.

I am struggling with expanding the books in the products tracker with the international standard book number (ISBN, ISSN for magazines).

I added a text field for that, entered the data. and it looks fine in both item editor and lists, but I cannot get product cart (or carts) to show the data.

I gave product_ISBNISSN as permanent name, and try to call this on cart product with
(FORMAT(name="ISBN/ISSN"))(display name="tracker_field_product_ISBNISSN")(FORMAT)

(parantheses modified so it provokes no conflicts here). The same syntax the other field use, but no output comes for the book numbers...

Germany
luciash d' being 🧙‍♂️ wrote:
  1. have you rebuilt your Search Index?
  2. you can use PluginCode to display the code here
  3. if you have new topic (issue) it is better to start new topic thread


luci


Yep, I rebuilt the search index (thrice), but it did not help.

Germany

GOT IT!

Needed to patch product cart by adding

{FORMAT(name="ISBNISSN")}{display name="tracker_field_product_ISBNISSN"}{FORMAT}


and then change /examples/shop/product_item.tpl by adding a new row

<tr>
		<th>
			<strong>ISBN/ISSN:</strong>
		</th>
		<td>
			<strong itemprop="ISBNISSN">{$row.ISBNISSN}</strong>
		</td>
	</tr>


Now it works. And now I know where to complete the translation of the shop, because the language in the .tpl is hardcoded!


Upcoming Events

No records to display

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.