Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Two questions (1 bug and 1 request)


musicmaestro

Recommended Posts

Hi

 

I have two questions I hope someone can assist with:

 

1: When someone makes a purchase from our site the quantity does not always deduct. We have tried various payment methods (Cash on delivery, PayPal etc) but only sometimes does the stock quantity deduct. We cannot pin point exactly when this happening. We have changed the PayPal module to the latest version and installed that. Any suggestions on this one?

 

2: When we visit the admin panel to show customer orders, we would like to be able to click on the item in the order (e.g. 1 x Product that someone bought) and on doing so, a pop up window could be displayed the same way as the "Click to enlarge" function on the main site. Is there a contribution out there or can anyone point us in the right direction?

 

We have a fair knowledge of php and oscommerce.

 

Many thanks guys.

 

 

Steve

Link to comment
Share on other sites

Still looking for some guidance on this plase guys.

 

I have found in the products_info.php the following code is the "Click to enlarge"

 

<script language="javascript"><!--

document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');

//--></script>

<noscript>

 

In the admin\orders.php file the line where the PRODUCT appears is:

 

echo ' </td>' . "\n" .

' <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n" .

' <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" .

 

I have tried inserting the "Click to enlarge" code between, above and below but I get and error when I refresh the page.

 

Can anyone please assist. All I'm looking to do is as described in item above.

 

Thank you

 

Steve

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...