Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Problem with order's link - Order 10168‏
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 3 (Joomla 1.5 compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1
  • 2

TOPIC: Problem with order's link - Order 10168‏

Problem with order's link - Order 10168‏ 14 years, 3 months ago #12481

  • pot79
  • OFFLINE
  • Posts: 15
ARTIO s.r.o. Purchase Order - 10168‏

JoomSEF 3.6.3 (Site URL: www.erboristeriainsole.it
VirtueMart JoomSEF 3 Extension (Site URL: www.erboristeriainsole.it
Testing URL: www.erboristeriainsole.it)

Joomla 1.5.14
VirtueMart 1.1.3 stable


Hi,
i have a big problem with the order's link in 1)checkout thankyou page (the page after order confirmation) and 2)customer's confirmation email.

This is the wrong link
account/order.html?order_id=xxx

How can i solve this problem?
Last Edit: 14 years, 3 months ago by pot79.
The topic has been locked.

Re:Problem with order's link - Order 10168‏ 14 years, 3 months ago #12488

  • dajo
  • OFFLINE
  • Posts: 5069
Hello,

What is wrong with the link? Does it show 404 page when clicked?

Best regards,
ARTIO Support Team
ARTIO Support Team
The topic has been locked.

Re:Problem with order's link - Order 10168‏ 14 years, 3 months ago #12489

  • pot79
  • OFFLINE
  • Posts: 15
For example....order n.208 , in the customer's email there is this text:

Look at the order following this link

But the link is
account/order.html?order_id=208
and it show NOT FOUND


The right link should be
www.erboristeriainsole.it/account/order.html?order_id=208
The topic has been locked.

Re:Problem with order's link - Order 10168‏ 14 years, 3 months ago #12644

  • pot79
  • OFFLINE
  • Posts: 15
i haven't solve the problem.....can i have your help?
thank you
The topic has been locked.

Re:Problem with order's link - Order 10168‏ 14 years, 3 months ago #12645

  • dajo
  • OFFLINE
  • Posts: 5069
Hello,

This is another problem with VirtueMart not supporting SEF correctly. Open the file /components/com_virtuemart/themes/(your theme)/templates/order_emails/confirmation_email.tpl.php and add the following code somewhere to the beggining:
if ($order_link[0] == '/') {
$order_link = SECUREURL . substr($order_link, 1);
}


Best regards,
ARTIO Support Team
ARTIO Support Team
The topic has been locked.

Re:Problem with order's link - Order 10168‏ 14 years, 3 months ago #12650

  • pot79
  • OFFLINE
  • Posts: 15
this is confirmation_email_tpl.php code:

<?php
// $Id: confirmation_email.tpl.php 1393 2008-05-02 11:42:19Z soeren_nb $
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
 
?>
<html>
<head>
<title><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_PO_LBL') ?></title>
<style type="text/css">
<!--
.Stil1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}
.Stil2 {font-family: Verdana, Arial, Helvetica, sans-serif}
-->
</style>
</head>
<body>
 
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="10">
<tr valign="top">
<td width=53% align="left" class="Stil1"><?php echo ps_vendor::formatted_store_address(true) ?></td>
<td width="47%" align="right"><img src="cid:vendor_image" alt="vendor_image" border="0" /></td>
</tr>
<tr>
<td colspan="2" class="Stil1"><?php echo $order_header_msg ?></td>
</tr>
<tr bgcolor="white">
<td colspan="2">
<h3 class="Stil2"><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_PO_LBL') ?></h3>
</td>
</tr>
</table>
 
<table border=0 cellspacing=0 cellpadding=2 width=100%>
<!-- begin customer information -->
<tr bgcolor="#CCCCCC" class="sectiontableheader">
<td colspan="2" class="Stil2"><b><?php echo $VM_LANG->_('PHPSHOP_ACC_ORDER_INFO') ?></b></td>
</tr>
<tr class="Stil1">
<td><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_PO_NUMBER')?>:</td><td><?php echo $order_id ?></td>
</tr>
 
<tr class="Stil1">
<td><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_PO_DATE') ?>:</td><td><?php echo $order_date ?></td>
</tr>
<tr class="Stil1">
<td><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_PO_STATUS') ?>:</td><td><?php echo $order_status ?></td>
</tr>
<!-- end customer information -->
<!-- begin 2 column bill-ship to -->
<tr class="sectiontableheader">
<td colspan="2">&nbsp;</td>
</tr>
<tr bgcolor="#CCCCCC" class="sectiontableheader">
<td colspan="2"><b class="Stil2"><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_CUST_INFO_LBL') ?></b></td>
</tr>
<tr valign=top>
<td width=50%> <!-- begin billto -->
<table width=100% cellspacing=0 cellpadding=2 border=0>
<?php
foreach( $registrationfields as $field ) {
if( $field->name == 'email') $field->name = 'user_email';
if( $field->name == 'delimiter_sendregistration') continue;
if( $field->type == 'captcha') continue;
if( $field->type == 'delimiter') { ?>
<tr class="Stil1">
<td colspan="2"><b class="Stil1"><?php echo $VM_LANG->_($field->title) ? $VM_LANG->_($field->title) : $field->title ?></b></td>
</tr>
<?php
} else { ?>
<tr class="Stil1">
<td><?php echo $VM_LANG->_($field->title) ? $VM_LANG->_($field->title) : $field->title ?>:</td>
<td><?php
switch($field->name) {
case 'country':
require_once(CLASSPATH.'ps_country.php');
$country = new ps_country();
$dbc = $country->get_country_by_code($dbbt->f($field->name));
if( $dbc !== false ) echo $dbc->f('country_name');
break;
default:
echo $dbbt->f($field->name);
break;
}
?></td>
</tr>
<?php
} ?>
<?php
}
?>
</table>
<!-- end billto -->
</td>
<td width=50%>
<!-- begin shipto -->
<table width=100% border=0 cellpadding=2 cellspacing=0 class="Stil1">
<tr>
<td colspan="2"><b><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_SHIP_TO_LBL') ?></b></td>
</tr>
<?php
foreach( $shippingfields as $field ) {
if( $field->name == 'email') $field->name = 'user_email';
if( $field->type == 'delimiter') { ?>
<tr class="Stil1">
<td colspan="2"><b class="Stil1"><?php echo $VM_LANG->_($field->title) ? $VM_LANG->_($field->title) : $field->title ?></b></td>
</tr>
<?php
} else { ?>
<tr class="Stil1">
<td><?php echo $VM_LANG->_($field->title) ? $VM_LANG->_($field->title) : $field->title ?>:</td>
<td><?php
switch($field->name) {
case 'country':
require_once(CLASSPATH.'ps_country.php');
$country = new ps_country();
$dbc = $country->get_country_by_code($dbst->f($field->name));
if( $dbc !== false ) echo $dbc->f('country_name');
break;
default:
echo $dbst->f($field->name);
break;
}
?></td>
</tr>
<?php
} ?>
<?php
}
?>
</table>
<!-- end shipto -->
<!-- end customer information --> </td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="1">
 
</table>
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<!-- begin order items information -->
<tr bgcolor="#CCCCCC" class="Stil2">
<td colspan="2"><b><?php echo $VM_LANG->_('PHPSHOP_ORDER_ITEM') ?></b></td>
</tr>
<tr>
<td colspan="2">
<table width=100% cellspacing=0 cellpadding=2 border=0>
<tr align=left class="Stil1">
<th><?php echo $VM_LANG->_('PHPSHOP_CART_QUANTITY') ?></th>
<th><?php echo $VM_LANG->_('PHPSHOP_CART_NAME') ?></th>
<th><?php echo $VM_LANG->_('PHPSHOP_CART_SKU') ?></th>
<th><?php echo $VM_LANG->_('PHPSHOP_CART_PRICE') ?></th>
<th><?php echo $VM_LANG->_('PHPSHOP_CART_SUBTOTAL') ?></th>
</tr>
<?php
// CREATE THE LIST WITH ALL ORDER ITEMS
$order_items = "";
$sub_total = 0.00;
while($dboi->next_record()) {
$my_qty = $dboi->f("product_quantity");
if ($auth["show_price_including_tax"] == 1) {
$price = $dboi->f("product_final_price");
$my_price = $CURRENCY_DISPLAY->getFullValue($dboi->f("product_final_price"), '', $db->f('order_currency'));
} else {
$price = $dboi->f("product_item_price");
$my_price = $CURRENCY_DISPLAY->getFullValue($dboi->f("product_item_price"), '', $db->f('order_currency'));
}
$my_subtotal = $my_qty * $price;
$sub_total += $my_subtotal;
?>
<tr class="Stil1">
<td><?php echo $my_qty ?></td>
<td><?php $dboi->p("product_name")?> <?php echo ($dboi->f("product_attribute") ? ' ('.$dboi->f("product_attribute").')' : ''); ?></td>
<td><?php echo $ps_product->get_field($dboi->f("product_id"), "product_sku") ?></td>
<td><?php echo $my_price ?></td>
<td><?php echo $CURRENCY_DISPLAY->getFullValue($my_subtotal, '', $db->f('order_currency')) ?></td>
</tr>
<?php
}
?>
<tr class="Stil1">
<td colspan=4 align=right>&nbsp;&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="Stil1">
<td colspan=4 align=right><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_SUBTOTAL') ?> :</td>
<td><?php echo $order_subtotal ?></td>
</tr>
<?php
// DISCOUNT HANDLING
if ( PAYMENT_DISCOUNT_BEFORE == '1') {
if ($order_discount > 0 || $order_discount < 0) {
?>
<tr class="Stil1">
<td align="right" colspan="4"><?php echo $order_discount_lbl ?>: </td>
<td> <?php echo $order_discount_plusminus .' '. $CURRENCY_DISPLAY->getFullValue(abs($order_discount), '', $db->f('order_currency')) ?></td>
</tr>
<?php
}
if ($coupon_discount > 0 || $coupon_discount < 0) {
?>
<tr class="Stil1">
<td align="right" colspan="4"><?php echo $VM_LANG->_('PHPSHOP_COUPON_DISCOUNT') ?>: </td>
<td><?php echo $coupon_discount_plusminus. ' '.$CURRENCY_DISPLAY->getFullValue(abs($coupon_discount), '', $db->f('order_currency')) ?></td>
</tr>
<?php
}
}
?>
<tr class="Stil1">
<td colspan=4 align=right><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_SHIPPING') ?> :</td>
<td><?php echo $order_shipping ?></td>
</tr>
<tr class="Stil1">
<td colspan=4 align=right><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_TOTAL_TAX') ?> :</td>
<td><?php echo $order_tax ?></td>
</tr>
<?php
if ( PAYMENT_DISCOUNT_BEFORE != '1') {
if ($order_discount > 0 || $order_discount < 0) {
?>
<tr class="Stil1">
<td align="right" colspan="4"><?php echo $order_discount_lbl ?>: </td>
<td> <?php echo $order_discount_plusminus .' '. $CURRENCY_DISPLAY->getFullValue(abs($order_discount), '', $db->f('order_currency')) ?></td>
</tr>
<?php
}
if ($coupon_discount > 0 || $coupon_discount < 0) {
?>
<tr class="Stil1">
<td align="right" colspan="4"><?php echo $VM_LANG->_('PHPSHOP_COUPON_DISCOUNT') ?>: </td>
<td><?php echo $coupon_discount_plusminus. ' '.$CURRENCY_DISPLAY->getFullValue(abs($coupon_discount), '', $db->f('order_currency')) ?></td>
</tr>
<?php
}
}
?>
<tr class="Stil1">
<td colspan=4 align=right><b><?php echo $VM_LANG->_('PHPSHOP_CART_TOTAL') .": " ?></b></td>
<td><?php echo $order_total ?></td>
</tr>
</table>
</td>
</tr>
<!-- end order items information -->
 
<!-- NATALE>
<tr class="sectiontableheader">
<td colspan="2">&nbsp;</td>
</tr>
<tr bgcolor="#CCCCCC" class="sectiontableheader">
<td colspan="2"><b class="Stil2"><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_PACCO') ?>:</b></td>
</tr>
<tr>
<td colspan="2">
<?php echo $pacco ?>
</td>
</tr>
 
<tr class="sectiontableheader">
<td colspan="2">&nbsp;</td>
</tr>
<tr bgcolor="#CCCCCC" class="sectiontableheader">
<td colspan="2"><b class="Stil2"><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_CARD_MESSAGE') ?>:</b></td>
</tr>
<tr>
<td colspan="2">
<?php echo $card_message ?>
</td>
</tr-->
<!-- FINE NATALE -->
 
 
 
 
 
<!-- begin customer note -->
<tr class="sectiontableheader">
<td colspan="2">&nbsp;</td>
</tr>
<tr bgcolor="#CCCCCC" class="sectiontableheader">
<td colspan="2"><b class="Stil2"><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_CUSTOMER_NOTE') ?>:</b></td>
</tr>
<tr>
<td colspan="2">
<?php echo $customer_note ?>
</td>
 
</tr>
<tr class="sectiontableheader">
<td colspan="2">&nbsp;</td>
</tr>
<tr bgcolor="#CCCCCC" class="sectiontableheader">
<td><b class="Stil2"><?php echo $payment_info_lbl ?></b></td>
<td><b class="Stil2"><?php echo $shipping_info_lbl ?></b></td>
</tr>
<tr>
<td><?php echo $payment_info_details ?></td>
<td><?php echo $shipping_info_details ?></td>
</tr>
<!-- modifica per dati bonifico in mail -->
<tr>
<td colspan="2"><?php echo $payment_extrainfo ?></td>
</tr>
</table>
<br>
<p class="Stil2"></p>
<p class="Stil2">
<?php
// EMAIL FOOTER MESSAGE
if( $is_email_to_shopper ) {
$footer_html = "<br /><br />".$VM_LANG->_('PHPSHOP_CHECKOUT_EMAIL_SHOPPER_HEADER2')."<br />";
 
if( VM_REGISTRATION_TYPE != 'NO_REGISTRATION' ) {
$footer_html .= "<br /><a title=\"".$VM_LANG->_('PHPSHOP_CHECKOUT_EMAIL_SHOPPER_HEADER5')."\" href=\"$order_link\">"
. $VM_LANG->_('PHPSHOP_CHECKOUT_EMAIL_SHOPPER_HEADER5')."</a>";
}
$footer_html .= "<br /><br />".$VM_LANG->_('PHPSHOP_CHECKOUT_EMAIL_SHOPPER_HEADER3')."<br />";
$footer_html .= $VM_LANG->_('CMN_EMAIL').": <a href=\"mailto:" . $from_email."\">".$from_email."</a>";
// New in version 1.0.5
if( @VM_ONCHECKOUT_SHOW_LEGALINFO == '1' && !empty( $legal_info_title )) {
$footer_html .= "<br /><br />____________________________________________<br />";
$footer_html .= '<h5>'.$legal_info_title.'</h5>';
$footer_html .= $legal_info_html.'<br />';
}
} else {
$footer_html = '<br /><br /><a title="'.$VM_LANG->_('PHPSHOP_CHECKOUT_EMAIL_SHOPPER_HEADER5').'" href="'.$order_link.'">'
. $VM_LANG->_('PHPSHOP_CHECKOUT_EMAIL_SHOPPER_HEADER5').'</a>';
}
echo $footer_html;
?>
</p>
</body>
</html>


Where do i add new code?
Thank you! ;)
The topic has been locked.
  • Page:
  • 1
  • 2
Přihlášení uživatele Prázdný