X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Exercises on developing X-Cart 5 - task 3 (https://forum.x-cart.com/showthread.php?t=77727)

vasilis 03-20-2020 11:52 AM

Exercises on developing X-Cart 5 - task 3
 
I have been doing the "Exercises on developing X-Cart 5" tasks from a pdf file released from Qualiteam and specifically I have been working on the 3rd task, with title: "Displaying attribute". I installed and enabled the solution module, just to see what the supposed functionality of the module is, but I cannot see any 'ISBN' attribute on the admin program details page of any product, so I cannot understand how the module is supposed to work.

Could anybody clarify this to me?

cflsystems 03-20-2020 04:15 PM

Re: Exercises on developing X-Cart 5 - task 3
 
First time I hear about "Exercises on developing X-Cart 5"

ISBN/UPC and Vendor ID are supported with System Fields module - https://market.x-cart.com/addons/system-fields.html

vasilis 03-21-2020 12:03 AM

Re: Exercises on developing X-Cart 5 - task 3
 
Here is the pdf file. Each exercise has a link for downloading the solution module.

I am not sure if the ISBN attribute referred in the task/exercise 3 is the same as the one supported by the System fields module. Due to the logic of the exercise, it may be a separate module.

Ed B. 03-21-2020 06:59 AM

Re: Exercises on developing X-Cart 5 - task 3
 
The module has only view classes and skins, so it doesn't add an attribute. You have to manually add attribute via admin page, then thanks to the solution module, it will show up in the catalog.

vasilis 03-22-2020 11:41 AM

Re: Exercises on developing X-Cart 5 - task 3
 
I'll check it out. Thanks Ed!

vasilis 03-24-2020 11:23 PM

Re: Exercises on developing X-Cart 5 - task 3
 
Well, the strange thing is that the ISBN attribute value appears in the customer product details page, in the 'Specification' tab, under the main product details, regardless of the existence of the enabled solution module. In other words, I don't understand what the solution module adds to the functionality, in this developer exercise.

cflsystems 03-25-2020 03:37 AM

Re: Exercises on developing X-Cart 5 - task 3
 
This module simply displays the ISBN filed and its value if an attribute with name ISBN exists and if it has a value. It shows within specific "list" - in this case product details page under description.


This exercise module was most likely coded when the Specifications tab did not exists or did not show attributes or something like that. With or without the module since you created the ISBN attribute it will show on the Specifications tab - the cart loops through all attributes and shows them on this tab by default.


The whole point of the exercise is to teach you how you can show some info on the product page and how you can loop through product attributes.

vasilis 03-25-2020 05:31 AM

Re: Exercises on developing X-Cart 5 - task 3
 
Thanks Steve
Quote:

This exercise module was most likely coded when the Specifications tab did not exists or did not show attributes or something like that. With or without the module since you created the ISBN attribute it will show on the Specifications tab
You confirmed my initial thought concerning your quoted phrase.
It would be a good idea for Qualiteam to having posted this note on the exercise.


All times are GMT -8. The time now is 02:42 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.