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

Another custom module question
 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 03-27-2019, 08:31 AM
 
welly welly is offline
 

eXpert
  
Join Date: Mar 2011
Location: UK
Posts: 209
 

Default Another custom module question

Hi

I want to change two methods in the GiftCerts class which is part of the gift certificate module.

The original GiftCerts.php file in question is:
classes/XLite/Module/RedSqui/GiftCertificates/Model/GiftCerts.php

The namespace is: namespace XLite\Module\RedSqui\GiftCertificates\Model;

The class declaration is: class GiftCerts extends \XLite\Model\AEntity implements \XLite\Model\Base\IOrderItem


I have created a module and my copy of the GiftCerts.php file is:
classes/XLite/Module/TLines/GiftCertificates/Module/RedSqui/GiftCertificates/Model/GiftCerts.php

My namespace is: namespace XLite\Module\TLines\GiftCertificates\Module\RedSqu i\GiftCertificates\Model;

But that's where I get stuck. I'm not sure what my class declaration should look like. The 'implements \XLite\Model\Base\IOrderItem' element of the original is confusing me, and I'm not sure how that affects the declaration I make as the other modules I have played with don't have this.

Can anyone give me a hint? The logic is still a bit alien to me.

Many thanks

Welly
__________________
X-Cart Business 5.3.6
Various add-ons

www.traininglines.co.uk
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (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 12:33 PM.

   

 
X-Cart forums © 2001-2018