Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Exercises on developing X-Cart 5 - task 3

 
Reply
   X-Cart forums > X-Cart 5 > Modules and themes (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 03-20-2020, 11:52 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 750
 

Default 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?
Reply With Quote
  #2  
Old 03-20-2020, 04:15 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 13,885
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 03-21-2020, 12:03 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 750
 

Default 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.
Reply With Quote
  #4  
Old 03-21-2020, 06:59 AM
 
Ed B. Ed B. is online now
 

eXpert
  
Join Date: Apr 2016
Posts: 322
 

Default 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.
__________________
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote
  #5  
Old 03-22-2020, 11:41 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 750
 

Default Re: Exercises on developing X-Cart 5 - task 3

I'll check it out. Thanks Ed!
Reply With Quote
  #6  
Old 03-24-2020, 11:23 PM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 750
 

Default 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.
Reply With Quote
  #7  
Old 03-25-2020, 03:37 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 13,885
 

Default 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.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #8  
Old 03-25-2020, 05:31 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 750
 

Default 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.
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modules and themes (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020