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

Wordpress plugin and shortcode
 
Reply
   X-Cart forums > Forum archive > Using X-Cart in my project > Need advice
 
Thread Tools
  #11  
Old 07-17-2009, 06:37 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 912
 

Default Re: Wordpress plugin and shortcode

Quote:
Originally Posted by amy2203
Am I sure that YOU have a file called imager.php in your root? funnily enough no! have a look at your file manager to see if it's there
I have checked it again & I can't find the file "imager.php".
I guess it's also not there at http://www.willowtreecrafts.co.uk/shop/imager.php

It's bcoz of version difference ?
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
  #12  
Old 07-17-2009, 06:47 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,503
 

Default Re: Wordpress plugin and shortcode

Quote:
Originally Posted by anandat
I have checked it again & I can't find the file "imager.php".
I guess it's also not there at http://www.willowtreecrafts.co.uk/shop/imager.php

It's bcoz of version difference ?

It's there in my site,

search for a product in your backend, and click generate HTML links, copy the thumbnail code and post it here,
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #13  
Old 07-18-2009, 12:21 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 912
 

Default Re: Wordpress plugin and shortcode

I am testing this mod on localhost & following HTML code generated by x-cart

<img src="http://localhost/store/image.php?type=T&id=3415" alt="Purna Satya" />

I tested above code in frontpage & it's showing the image correctly.
following is the thumnail code from QT's demo site

<img id="product_thumbnail" src="http://xcart-demo.qtmsoft.com/demo/image.php?type=T&id=144" width="125" height="103" alt="Nikon Coolpix 880" />

I can't see file imager.php !!

I guess the correct file is image.php & not imager.php.
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
  #14  
Old 07-18-2009, 01:33 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,503
 

Default Re: Wordpress plugin and shortcode

OK, if you know the correct file, change it,

Obviously I am wrong!
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #15  
Old 08-22-2009, 10:28 PM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,503
 

Default Re: Wordpress plugin and shortcode

Quote:
Originally Posted by anandat
hi amy2003,
I tried to play with the code at localhost & I got the following error
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\blog\wp-content\plugins\xcart.php on line 57

I have replaced all your web site links with my site links & changed the database setting also.
I guess in following line of the code there is no file "imager.php" is my x-cart root directory.

$xcart_output= $xcart_output."<div><div>".$productdata[product]."</div><div><img id='product_thumbnail' src='http://www.willowtreecrafts.co.uk/shop/imager.php/product_thumb.jpg?width=500&image=http://www.willowtreecrafts.co.uk/shop/images/T/".$productdata[filename]."' width='100' style='margin:5px;' alt='".$productdata[product]."' /></div>";

Please help to resolve the issue

Did you get this working?
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #16  
Old 08-23-2009, 11:33 PM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 912
 

Default Re: Wordpress plugin and shortcode

Yes it worked on localhost but not tried on actual site
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
  #17  
Old 08-24-2009, 01:36 AM
 
smaavie smaavie is offline
 

Member
  
Join Date: Feb 2008
Posts: 20
 

Default Re: Wordpress plugin and shortcode

Hi Amy,

Nice plugin, it works great on my site. One question, is there any way to add a basket widget to my Wordpress site? Basically the wordpress site will have products at the bottom of each post with "Add to basket" links, but what would be good is if I could display the basket somewhere in the sidebar of the Wordpress site, so you can see how many items and the value of your basket while reading posts in Wordpress.

Can this be done?
__________________
4.5 Gold
Reply With Quote
  #18  
Old 08-24-2009, 09:50 PM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,503
 

Default Re: Wordpress plugin and shortcode

AFAIK baskets are held in sessions cookies, not the database, so you'd have to be looking at the cookie, which is trickier (for me) than just the db.
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #19  
Old 10-22-2009, 09:15 AM
  boomobile's Avatar 
boomobile boomobile is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 306
 

Default Re: Wordpress plugin and shortcode

I've got the widget activated in wordpress, but how do I go about adding products? I must've missed this. Do you edit the plugin, or do you add code somewhere else? My first wordpress and I am still getting used to where and what everything is.

What databases do I use to replace these? What information am i looking for?

//connect to xcart db
$dbc=@mysql_connect ('****','****','****');
$dbc=@mysql_select_db('****');
__________________
X Cart Ver: 4.0.14
MySQL4 4.1.22
phpMyAdmin 2.6.0
Pearl 5.6.0
PHP 5.2.1
Python 2.2.2
Server: Apache/2.0.52 (Red Hat)
OS: Linux
www.cleanlinesurf.com
1. Customer Rewards Points
2. One Page Checkout (altercart)
3. Free shipping orders over $50 as Real Time Shipping
4. Gift Certificates
-----------------------------------------------
Graphic Design | Boomobile Design, LLC
www.boomobile.com
Reply With Quote
  #20  
Old 10-22-2009, 09:23 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,503
 

Default Re: Wordpress plugin and shortcode

the products are in xcart... the plugin just displays the products in your wordpress blog.

Where you want a product to appear put [xcart product="sku"] where sku is the sku of the product you want.

Make sure you edit the file with your xcart database access etc. you might want to edit the output too depending on how you want it to display.

It's not the best plugin but it works for me,
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
Reply
   X-Cart forums > Forum archive > Using X-Cart in my project > Need advice


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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 11:31 PM.

   

 
X-Cart forums © 2001-2018