Jump to content

Cart functions not working


shibby

Recommended Posts

Hello,

 

I am adding a shared hosting to cart. After that, when i try to get cart.php?a=view it deletes all cart items. When i try to configure product options (cart.php?a=confproduct&i=0) it sends me to cart.php. Newer loads confproduct tpl files.

 

Problem begin about 2 days ago, i couldn't figure out why. How can i troobleshoot this problem?

 

Edit: Damn! In a hook that i wrote there was these codes:

$currentdir = dirname(__FILE__);
$dirs = explode("/",$currentdir);
$count = count($dirs);
$path="/";
for($i = 0;$i<($count-2);$i++){
   $path .= $dirs[$i]."/";
}

 

it was running in admin area, but didn't worked for client area.

 

You can delete this topic

Edited by shibby
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated