[Contribution] Cross Sell (X-Sell) Admin
#41
Posted 11 March 2003 - 07:44 PM
as the options on the site need to cross sell with diferent catogories ie a fireplace surround would then require a backpanel and hearth etc etc
and there are 9 diffirent catogories under the marble section with in this
still going to add it anyway but just wanted to ask
http://www.designfireplaces.co.uk/catalog/default.php
#42
Posted 27 March 2003 - 02:10 AM
Quote
I have installed the above and give me this error
1136 - Column count doesn't match value count at row 1
INSERT INTO products_xsell VALUES ('',304,182,1)
Any help is apprecited
Salvo
salvo,
you need to make sure that the ID field in products_xsell is the first field. i am not sure why but that is the only way i could get it to work.
#43
Posted 30 March 2003 - 04:52 AM
in 'includes/modules/xsell_products.php' (which would have been renamed from xsell_products.php_buynow) find the line:
$xsell['products_name'] = tep_get_products_name($xsell['products_id']);and underneath, insert:
$xsell['specials_new_products_price'] = tep_get_products_special_price($xsell['products_id']);
if ($xsell['specials_new_products_price']) {
$xsell_price = '<s>' . $currencies->display_price($xsell['products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])) . '</s><br>';
$xsell_price .= '<span class="productSpecialPrice">' . $currencies->display_price($xsell['specials_new_products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])) . '</span>';
} else {
$xsell_price = $currencies->display_price($xsell['products_price'], tep_get_tax_rate($xsell['products_tax_class_id']));
}
then, find the line$currencies->display_price($xsell['products_price'], tep_get_tax_rate($xsell['products_tax_class_id']))and replace with:
$xsell_price
This is a very nice and in my opinion necessary contribution. It would be nice if the original cross sell was packaged with the admin for it. Happy coding everyone!
8)
-D. M.
#44
Posted 30 March 2003 - 04:59 AM
$currencies->display_price($xsell['products_price'], tep_get_tax_rate($xsell['products_tax_class_id']))
is inside of the the 'text' => ' ' part of the array a few lines down from the the other blurb of code. Don't replace this line in any part of the code that you would be inserting. I hope that makes more sense.
8)
-D. M.
#45
Posted 30 March 2003 - 08:39 AM
I would appreciate if someone posted a full working
xsell_products.php
I have a download of Nov 2002...
Thanks
Salvo
#46
Posted 01 April 2003 - 06:54 PM
I zipped both parts into one contribution.
It is here
http://www.oscommerce.com/community/contributions,334
I added the multi-language support changes as well as the specials fix.
Bob Marley
#47
Posted 01 April 2003 - 07:48 PM
#48
Posted 02 April 2003 - 09:07 AM
Bob Marley
#49
Posted 02 April 2003 - 01:06 PM
I have been trying to download the 04/01/2003 - Cross-Sell Complete v1.1 with no success...
Any idea why?
Thanks
Salvo
#50
Posted 03 April 2003 - 12:19 AM
#51
Posted 03 April 2003 - 09:20 AM
Bob Marley
#52
Posted 03 April 2003 - 10:09 PM
this is what I ended up with
/admin/xsell_products.php
line 194
$query = "INSERT INTO " . TABLE_PRODUCTS_XSELL . " VALUES ($_POST[add_related_product_ID],$temp,'','')";
#53
Posted 05 April 2003 - 07:13 PM
And with the last contribution download, I am able to add but not able to do anything else... amend/delete etc etc..
I think the the contribution is very nice but is in need to a better admin site where the xsell between products would be easy to enter...
with many product, it becomes very slow.
I am not a coder, but I think that if someone with a little knowledge in php could adjust and adapt the featured.php to this contribution...
Thanks
Salvo
#54
Posted 10 April 2003 - 05:15 AM
Some people have had problems using the Admin portion because the ID field gets added to the END of the database rather that at the begining of the database as it should be. This has cuased various errors and partial functionality.
This script will check to see if the table already exists and then delete it and create a new on with the ID filed in the right order.
Hopefully this will save somebody's hair line.
A big Kudos to Benjamin for his efforts on what he has done already with this Cross Sell contribution and to whoever started it. 8)
The great thing about beating your head against the wall is that it feels SO GOOD when you stop!
#55
Posted 11 May 2003 - 10:15 AM
how can i avoid this?
best regards,
harald
#56
Posted 11 May 2003 - 11:48 PM
Delete the other two languages that you dont need and and the triple entries will be only one entry.
If you need more than one language on your site then you will have one entry for EACH language you have on your site.
1 language = 1 entry
10 languages = 10 entries
This is a bit of a minor problem as the author of the the cros sell module did not write the admin portion of the module. Nothing that a little creative coding cant fix.
The great thing about beating your head against the wall is that it feels SO GOOD when you stop!
#57
Posted 12 May 2003 - 12:18 AM
Quote
Do you mind posting a link to this, I am interested in this contribution and I can't find an updated version, only the old one....
Thanks.
#58
Posted 12 May 2003 - 12:53 AM
http://www.oscommerce.com/community/contri...ions,334/page,4
This is only the SQL file, however it is in the same contribution area that the original Cross Sell module and Admin module are located, you just need to look at a couple of the earlier postings. (4/03/2003)
I have currently installed and am using the module as it exists in a site I am desging and it works as described. However, the admin portion needs a little help in the UI section
Of course I am also creating my own fork and support utilites like any good hacker would.
The great thing about beating your head against the wall is that it feels SO GOOD when you stop!
#59
Posted 13 May 2003 - 08:30 PM
Secondly, within admin is it possible to show the model field as well as or instead of the product description?
I have a lot of products that have the same description/title and its difficult to tell which one is which! :shock:
Any help would be much appreciated.
Thx
Tony
#60
Posted 14 May 2003 - 01:43 AM
Cross-Sell (X-Sell) Admin
1136 - Column count doesn't match value count at row 1
INSERT INTO products_xsell VALUES ('',30,68,1)
[TEP STOP]
Any idea what could be wrong? Was I supposed to make a modification to the table? I could use a bit of help here as it looks like I am pretty close to getting this module to work.
thanks.









