X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Showing Accessories for Product(s) (https://forum.x-cart.com/showthread.php?t=17429)

Amy 10-30-2005 08:07 PM

almost got it!

Warning: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /xxx/store/templates_c/%%E5^E5B^E5BB4BE6%%subaccessphp.tpl.php on line 48

Warning: main(http://change-to-your-store.com/cart/subaccess.php?cat=263&tm=&accprod=A+Real+Boy+Page+ Kit): failed to open stream: Success in /xxx/store/templates_c/%%E5^E5B^E5BB4BE6%%subaccessphp.tpl.php on line 48

Warning: main(): Failed opening 'http://change-to-your-store.com/cart/subaccess.php?cat=263&tm=&accprod=A+Real+Boy+Page+ Kit' for inclusion (include_pat in /xxx/store/templates_c/%%E5^E5B^E5BB4BE6%%subaccessphp.tpl.php on line 48

Amy 10-30-2005 08:18 PM

ok - got those fixed; but now:

Fatal error: Smarty error: [in subaccess/subaccessphp.tpl line 26]: syntax error: invalid attribute name: '($current_category["category_location"]' (Smarty_Compile in /home/scrapboo/public_html/store/Smarty-2.6.9/Smarty.class.php on line 1088

anoack 10-30-2005 10:29 PM

okay, I don't know how diffrent your version is from mine but try this.

1) Delete your subaccess.php file.
2) Make a copy of home.php and name it subaccess.php
3) Open up subaccess.php and add this code right before func_display near the bottom.
Code:

$smarty->assign("tm", $tm);
$smarty->assign("accprod", $accprod);

4) While still in subaccess.php find this:
Code:

func_display("customer/home.tpl",$smarty);
and replace it with this:
Code:

func_display("subaccess/subaccessdiag.tpl",$smarty);

Let me know...

Amy 10-31-2005 03:35 AM

thanks - will give it a try once my morning coffee has set in :)

anoack 11-04-2005 11:46 AM

I was wondering if the above worked for you Amy.

Lucent88 11-07-2005 07:19 AM

anyone got it to work on v4.0.16?

Amy 11-07-2005 08:14 AM

I'm actually going to try it again tonight. Will post an update

Lucent88 11-07-2005 08:21 AM

Great looking forward to know the update!!

eaglemobiles 01-30-2006 04:16 PM

Is there any way to add check box instead of buy now button. Customer select check box and use the main product buy now button?

anoack 01-30-2006 07:16 PM

Yes im pretty sure it can be done. It might take some time but it can be done. let me know if you want it done and I can modify it for you.


All times are GMT -8. The time now is 09:31 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.