Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Llangrannog

Pioneers
  • Posts

    16
  • Joined

  • Last visited

Everything posted by Llangrannog

  1. Thanks for the help the code throws in a lot of extra links and takes out the structure of site name, category, product description, which i currently have in my breadcrumb trail. This is what i want to duplicate in the product title instead of the other way around using Kissmt header tags. Here is the code // add the products model to the breadcrumb trail if (isset($HTTP_GET_VARS['products_id'])) { $model_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); if (tep_db_num_rows($model_query)) { $model = tep_db_fetch_array($model_query); // $breadcrumb->add($model['products_model'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id'])); } } Thanks
  2. Sorry for the typo it should be as it reads in the breadcrumb trail so it is included in the <title> tag with the site name first then category and then product name.
  3. I have fixed that by commenting out the products_model in products_info.php in the Kiss folder. Is there any way i can reverse the breadcrumb trail so it reads the same and in the breadcrumb trail in the bar with site name first? Thanks
  4. Hello, Cannot remove product_model from title tag or description great contribution but i seem to have hit a very small problem that has me beat. I cannot remove the product_model from the title or the description even after removing it from product_info.php. This removes it from the page but it is still being generated in the title tag and description. I have flushed the cache on KissMT Dynamic SEO, oscommerce admin and from the browser but it will not go away. It seems as though it have been recorded somewhere and will not move. Can the title tag be edited to remove products_model? I am using it with Seo Urls 5 and wondered if there was someway that i could also modify the breadcrumb trail to show product name instead of product model Thanks
  5. Hello Jack You were right i found this http://mirahost.com/support/index.php?_m=k...;kbarticleid=69 which explained about the problem with PHP5 upgrade i changed to code on line 794 of admin/links.php from $lInfo_array = array_merge($links, $category); to $lInfo_array = array_merge((array)$links, (array)$category); and it now works fine. hope this helps sombody else Regards Trevor
  6. Hello Jack Thanks for the guidance but I have checked out the patches and I have done so many add ins that it is going corupt a number of other contributions, i have also searched the topic for php compatibility and have found nothing. Could you specify which files need updating I have the latest download or point me in the right direction. Thanks again Trevor
  7. Hello I am using 1.17 and have these warnings come up on links manager in the admin panel, can anyone help me sort it out please. Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/twmayes/domains/colour-counselling-therapy-healing.com/public_html/catalogue/admin/links.php on line 794 Warning: reset() [function.reset]: Passed variable is not an array or object in /home/twmayes/domains/colour-counselling-therapy-healing.com/public_html/catalogue/admin/includes/classes/object_info.php on line 17 Warning: Variable passed to each() is not an array or object in /home/twmayes/domains/colour-counselling-therapy-healing.com/public_html/catalogue/admin/includes/classes/object_info.php on line 18
  8. Hello, I have the same problem how did you fix it? Thanks Trevor
  9. I have a similar problem with account_history_info.php i cannot work out where to put this code onto the page! // Begin RMA Returns if ($order->products[$i]['return'] == '1') { $rma_query_one = tep_db_query("SELECT returns_id FROM " . TABLE_RETURNS_PRODUCTS_DATA . " where products_id = '" . $order->products[$i]['id'] . "' and order_id = '" . $HTTP_GET_VARS['order_id'] . "'"); $rma_query = tep_db_fetch_array($rma_query_one); $rma_number_query = tep_db_query("SELECT rma_value FROM " . TABLE_RETURNS . " where returns_id = '" . $rma_query['returns_id'] . "'"); $rma_result = tep_db_fetch_array($rma_number_query); $return_link = '<b>' . TEXT_RMA . ' # <u><a href="' . tep_href_link(FILENAME_RETURNS_TRACK, 'action=returns_show&rma=' . $rma_result['rma_value'], 'NONSSL') . '">' . $rma_result['rma_value'] . '</a></u></b>'; } else { $return_link = '<a href="' . tep_href_link(FILENAME_RETURN, 'order_id=' . $HTTP_GET_VARS['order_id'] . '&products_id=' . ($order->products[$i]['id']), 'NONSSL') . '"><b><u>' . TEXT_RETURN_PRODUCT .'</a></u></b>'; } // Don't show Return link if order is still pending or processing // You can change this or comment it out as best fits your store configuration // My first contribution to anything open source, a bug fix to a long running RMA system. These were the changes I had to make to get it to work with a 2.2MS2 install. if (($order->info['orders_status'] == 'Pending') OR ($order->info['orders_status'] == 'Processing')) { $return_link = ''; } echo ' <tr>' . "\n" . ' <td class="main" align="right" valign="top" width="30">' . $order->products[$i]['qty'] . ' x</td>' . "\n" . ' <td class="main" valign="top">' . $order->products[$i]['name']; if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) { for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) { echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>'; } } echo $return_link; // JLM: End RMA Returns echo '</td>' . "\n"; These are the instructions Find this text: <?php } for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { Further below is another line (if you haven't customised your install!, otherwise, the first if statement, then the else!)... Note also, that appears more then once in the file: if (sizeof($order->info['tax_groups']) > 1) { Replace the text, looking for the corresponding } to the above statement, insert the following, comparing the text below with any other customisations. This is the tricky bit, look carefully at the changes, you'll be able to match the echos somewhere in the file. The area to paste is here <?php } for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { echo ' <tr>' . "\n" . ' <td class="main" align="right" valign="top" width="30">' . $order->products[$i]['qty'] . ' x</td>' . "\n" . ' <td class="main" valign="top">' . $order->products[$i]['name']; if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) { for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) { echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>'; } } echo '</td>' . "\n"; if (sizeof($order->info['tax_groups']) > 1) { echo ' <td class="main" valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n"; } echo ' <td class="main" align="right" valign="top">' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</td>' . "\n" . ' </tr>' . "\n"; } ?> Can someone show me where the code goes as i have tried according to very vague instructions and i get the warning about the } which i remove but it does not work Thanks
  10. Hello, I have just installed this contribution and get this error from admin Fatal error: Call to a member function add() on a non-object in /admin/extra_info_pages.php on line 39 Line 39 is this $breadcrumb->add($page_check[pages_title], tep_href_link('info_pages.php?pages_id=' . $infopageid)); Can anyonebody help with this? Thanks
  11. :rolleyes: Yes, you are right I had the same problem and did the same solution, I enter the sandpit email into the PayPal IPN module and not my real one and it worked for me. Much easier than messing with code! Thanks for this information
×
×
  • Create New...