Loading...
 
Features / Usability

Features / Usability


Strange cart behaviour

posts: 210

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

posts: 210

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...

posts: 210
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...

posts: 2428 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

hman 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...

posts: 210
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.

posts: 210

GOT IT!

Needed to patch product cart by adding

Copy to clipboard
{FORMAT(name="ISBNISSN")}{display name="tracker_field_product_ISBNISSN"}{FORMAT}


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

Copy to clipboard
<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

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting