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

Adding Images to the Invoice
 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #21  
Old 04-04-2015, 04:25 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Adding Images to the Invoice

[quote=tony_sologubov]1) Making images clickable is basically to wrap them into <a></a> tags. I believe, you already know that, so I am not sure what piece of advice I can give you here aside from just adding <a></a> tags.[/quote

Tony,

I know how to use <a> lol I just have no idea with the proper code would be to do that.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #22  
Old 04-07-2015, 05:59 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,429
 

Default Re: Adding Images to the Invoice

Quote:
Originally Posted by minfinger
Tony,

I know how to use <a> lol I just have no idea with the proper code would be to do that.

Makes sense now :- )

You can specify it as
Code:
?target=product&product_id=#PRODUCT ID#

of course #PRODUCT ID# part will be taken from the {item} object.

The code you shown previously does not make a lot of sense to me as I am not quite following what you are trying to achieve by it.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #23  
Old 04-11-2015, 02:05 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Adding Images to the Invoice

I'm trying to get the image load on the General Info Tab on when you look at the order information. You originally said:
Quote:
In order to add images to Order Items section in General info tab, you need to decorate the \XLite\View\ItemsList\Model\OrderItem viewer class and add new image field to the defineColumns() method similar to how it is done here:
http://kb.x-cart.com/display/XDD/Ite...+in+admin+area

And that's what I was trying to do. I was asking your opinion before I tried the code.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #24  
Old 04-15-2015, 04:47 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,429
 

Default Re: Adding Images to the Invoice

Quote:
Originally Posted by minfinger
I'm trying to get the image load on the General Info Tab on when you look at the order information. You originally said:


And that's what I was trying to do. I was asking your opinion before I tried the code.

Thanks for the explanation, Michael. Now your idea is clear to me.

Your code should look as follows:
PHP Code:
namespace XLite\Module\FasterThanYours\ImagesOnGeneralInfoTab\View;

class 
OrderItem extends \XLite\View\ItemsList\Model\OrderItem implements \XLite\Base\IDecorator
{
    protected function 
defineColumns()
    {
        
$return parent::defineColumns();

        
$return += array(
            
'image' => array(
                static::
COLUMN_NAME     => 'Image',
                static::
COLUMN_ORDERBY  => 100,
            ),
        );
    }


Because, you only need to add one more field to an array returned by defineColumns() method, not to overwrite this array completely.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #25  
Old 08-01-2015, 07:37 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Adding Images to the Invoice

Tony,

This may have broken with the latest release. I have duplicate logos on my invoices and the Image column is there, but the image is not. The Image is showing up on the "Thank your for your order" screen after checkout.

I am working on something unique with Olesya that modifies the Invoice Email. You may want to chat with her.

Packed Mod:
https://www.dropbox.com/s/6pih1imkjzinhog/FasterThanYours-ImagesOnInvoice-v5_2_0.tar?dl=0

Image of the Invoice in Email
http://i21.photobucket.com/albums/b298/fasterthanyours/Images%20On%20Invoice%2003%20-%20Double%20Logos%20a...20pictures.jpg
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #26  
Old 08-03-2015, 11:43 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Adding Images to the Invoice

Quote:
Originally Posted by minfinger
This may have broken with the latest release.

It works on our local installation. Some other module (perhaps, a custom one) seems to cause the problem.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #27  
Old 08-04-2015, 01:54 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Adding Images to the Invoice

I think the core installation is corrupt. I disabled all mods and it's still producing the problem. How can i replace just the files that this mod affects or even all of the files that generate that emails?
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #28  
Old 08-05-2015, 12:02 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Adding Images to the Invoice

Quote:
Originally Posted by minfinger
I think the core installation is corrupt. I disabled all mods and it's still producing the problem. How can i replace just the files that this mod affects or even all of the files that generate that emails?
That's kind of a known issue with the latest version of X-Cart. However, this is not a bug.
The invoice logo duplicates because you have one piece of code that add a logo in the .tpl template of the invoice (templates can be found in /skins/default/en/order/invoice) and one in the header of the invoice.
Go to the "Store setup" > "Email notifications" > "Headers and signatures" and remove everything from the "Header" section.
That is how you eliminate one of the logos.
About the "Image" column on the invoice, most likely one of your templates is customized, and it mistakenly adds this.
This should be looked into thoroughly on your server.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
  #29  
Old 11-05-2015, 05:21 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Adding Images to the Invoice

Igor,

Actually I had this problem in 5.2.6. I haven't checked in 5.2.9 yet. In the old version I was able to remove the logo, but the remainder of the text kept reproducing itself.

Tony,

Since upgrading to 5.2.9, the Images on Invoice Mod has stopped working.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #30  
Old 11-05-2015, 05:40 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Adding Images to the Invoice

Quote:
Originally Posted by minfinger
Igor,

Actually I had this problem in 5.2.6. I haven't checked in 5.2.9 yet. In the old version I was able to remove the logo, but the remainder of the text kept reproducing itself.

Tony,

Since upgrading to 5.2.9, the Images on Invoice Mod has stopped working.
Sorry, I won't be able to tell anything for sure without investigating this in your X-Cart installation.
Please submit a support ticket at https://secure.x-cart.com
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
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 01:50 AM.

   

 
X-Cart forums © 2001-2018