Error in checkout

  • Posts: 152
  • Thank you received: 11
11 years 10 months ago #80383

We now have our shop posted online, but there will be a big mistake when we test checkout.

After pressing next to confirm payment methods etc., we come to the url bestoil.dk/index.php/webshop/checkout/step/step-1
But here is something missing information and thus the payment can not be implemented.
At the same time payment is set as implemented in the backend.

I am attaching a screenshot of the above url.


I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ;)
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #80457

Hi,

You have a 500 error, try to enable the debug mode in the joomla options, and tell us what is the returned error.

Please Log in or Create an account to join the conversation.

  • Posts: 152
  • Thank you received: 11
11 years 10 months ago #80463

Here is the fail
Notice: Undefined property: hikashopMailClass::$config in [changed]bestoil.dk/httpd.www/media/com_hikashop/mail/order_creation_notification.html.modified.php on line 54 Fatal error: Call to a member function set() on a non-object in [changed]/bestoil.dk/httpd.www/media/com_hikashop/mail/order_creation_notification.html.modified.php on line 54
Varenavn

I also get a error on recaptcha:
Can it also be this?
Strict Standards: Only variables should be assigned by reference in [changed]bestoil.dk/httpd.www/plugins/system/recaptcha/recaptcha.php on line 22


Here is my order_creation_notification

<?php
/**
 * @package    HikaShop for Joomla!
 * @version    1.6.0
 * @author    hikashop.com
 * @copyright  (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
 * @license    GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?>
<div style="background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;font-size:12px; color: #000000; width: 100%;">
  <table style="margin: auto;font-family: Verdana, Arial, Helvetica, sans-serif;font-size:12px;" border="0" cellspacing="0" cellpadding="0">
    <tbody>
      <tr>
        <td height="10">
        </td>
      </tr>
      <tr>
        <td height="10"><img src="http://kv44hav.dk/joomla/images/bestoil_logo.png" width="540">
        </td>
      </tr>
      <tr>
        <td height="20">
        </td>
      </tr>
      <tr>
        <td>
          <?php echo JText::sprintf('HI_CUSTOMER',@$data->customer->name);?>
          <br/>
          <br/>
          <?php
          $colspan = 4;
          $url = $data->order_number;
          $config =& hikashop_config();
          if($config->get('simplified_registration',0)!=2){
            $url = '<a href="'.$data->order_url.'">'. $url.'</a>';
          }
          echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',$url,HIKASHOP_LIVE, hikashop_getDate(time(),'%d. %B %Y'), hikashop_getDate(time(),'%H:%M'));?>
        </td>
      </tr>
      <tr>
        <td height="10">
        </td>
      </tr>
      <tr>
        <td>
          <h1 style="background-color:#DDDDDD;font-size:14px;width:100%;padding:5px;"><?php echo JText::_('SUMMARY_OF_YOUR_ORDER');?></h1>
          <br/>
          <table width="100%" style="font-family: Verdana, Arial, Helvetica, sans-serif;font-size:12px;">
            <tr>
              <td style="font-weight:bold;"><?php
                echo JText::_('CART_PRODUCT_NAME');
              ?></td>
              <?php $this->config->set('show_code',1); { $colspan++; ?>
                <td style="font-weight:bold;"><?php echo JText::_('CART_PRODUCT_CODE'); ?></td>
              <?php } ?>
              <td style="font-weight: bold;"><?php
                echo JText::_('CART_PRODUCT_UNIT_PRICE');
              ?></td>
              <td style="font-weight: bold;"><?php
                echo JText::_('CART_PRODUCT_QUANTITY');
              ?></td>
              <td style="font-weight: bold; text-align: right;"><?php echo JText::_('HIKASHOP_TOTAL'); ?>
              </td>
            </tr>
            <?php
              if(hikashop_level(2)){
                $fieldsClass = hikashop_get('class.field');
                $null = null;
                $itemFields = $fieldsClass->getFields('frontcomp',$null,'item');
              }
              $group = $config->get('group_options',0);
              foreach($data->cart->products as $item){
                if($group && $item->cart_product_option_parent_id) continue;
                ?>
                <tr>
                  <td>
                    <p>
                      <?php echo $item->order_product_name;
                      if($group){
                        $display_item_price=false;
                        foreach($data->cart->products as $j => $optionElement){
                          if($optionElement->cart_product_option_parent_id != $item->cart_product_id) continue;
                          if($optionElement->order_product_price>0){
                            $display_item_price = true;
                          }
                        }
                        if($display_item_price){
                          if($config->get('price_with_tax')){
                            echo ' '.$currencyHelper->format($item->order_product_price+$item->order_product_tax,$data->order_currency_id);
                          }else{
                            echo ' '.$currencyHelper->format($item->order_product_price,$data->order_currency_id);
                          }
                        }
                      }
                      ?>
                    </p><?php
                    if(!empty($itemFields)){
                      foreach($itemFields as $field){
                        $namekey = $field->field_namekey;
                        if(empty($item->$namekey)) continue;
                        echo '<p>'.$fieldsClass->getFieldName($field).': '.$fieldsClass->show($field,$item->$namekey).'</p>';
                      }
                    }
                    if($group){
                      foreach($data->cart->products as $j => $optionElement){
                        if($optionElement->cart_product_option_parent_id != $item->cart_product_id) continue;
                        $item->order_product_price +=$optionElement->order_product_price;
                        $item->order_product_tax +=$optionElement->order_product_tax;
                        $item->order_product_total_price+=$optionElement->order_product_total_price;
                        $item->order_product_total_price_no_vat+=$optionElement->order_product_total_price_no_vat;
                         ?>
                          <p class="hikashop_order_option_name">
                            <?php
                              echo $optionElement->order_product_name;
                              if($optionElement->order_product_price>0){
                                if($config->get('price_with_tax')){
                                  echo ' ( + '.$currencyHelper->format($optionElement->order_product_price+$optionElement->order_product_tax,$data->order_currency_id).' )';
                                }else{
                                  echo ' ( + '.$currencyHelper->format($optionElement->order_product_price,$data->order_currency_id).' )';
                                }
                              }
                            ?>
                          </p>
                      <?php
                      }
                    }
                    $statusDownload = explode(',',$config->get('order_status_for_download','confirmed,shipped'));
                    if(in_array($data->order_status,$statusDownload)){
                      if(!empty($item->files)){
                        global $Itemid;
                        $url_itemid = '';
                        if(!empty($Itemid)){
                          $url_itemid='&Itemid='.$Itemid;
                        }
                        echo '<p>';
                        foreach($item->files as $file){
                          $fileName = empty($file->file_name) ? $file->file_path : $file->file_name;
                          echo '<a href="'.hikashop_frontendLink('index.php?option=com_hikashop&ctrl=order&task=download&file_id='.$file->file_id.'&order_id='.$data->order_id.$url_itemid).'">'.$fileName.'</a><br/>';
                        }
                        echo '</p>';
                      }
                    } ?>
                  </td>
                  <?php $this->config->set('show_code',1); { ?>
                    <td><p class="hikashop_product_code_mail"><?php echo $item->order_product_code; ?></p></td>
                  <?php } ?>
                  <td>
                  <?php
                    if($config->get('price_with_tax')){
                      echo $currencyHelper->format($item->order_product_price+$item->order_product_tax,$data->order_currency_id);
                    }else{
                      echo $currencyHelper->format($item->order_product_price,$data->order_currency_id);
                    } ?>
                  </td>
                  <td><?php echo $item->order_product_quantity; ?></td>
                  <td style="text-align: right">
                    <?php
                    if($config->get('price_with_tax')){
                      echo $currencyHelper->format($item->order_product_total_price,$data->order_currency_id);
                    }else{
                      echo $currencyHelper->format($item->order_product_total_price_no_vat,$data->order_currency_id);
                    } ?>
                  </td>
                </tr>
                <?php
              }
              if(bccomp($data->order_discount_price,0,5)){
                echo '<tr><td colspan="'.$colspan.'" style="text-align:right">'.JText::_('HIKASHOP_COUPON').' : ';
                if($config->get('price_with_tax')){
                  echo $currencyHelper->format($data->order_discount_price*-1,$data->order_currency_id);
                }else{
                  echo $currencyHelper->format(($data->order_discount_price-@$data->order_discount_tax)*-1,$data->order_currency_id);
                }
                echo '</td></tr>';
              }
              if(bccomp($data->order_shipping_price,0,5)){
                echo '<tr><td colspan="'.$colspan.'" style="text-align:right">'.JText::_('HIKASHOP_SHIPPING_METHOD').' : ';
                if($config->get('price_with_tax')){
                  echo $currencyHelper->format($data->order_shipping_price,$data->order_currency_id);
                }else{
                  echo $currencyHelper->format($data->order_shipping_price-@$data->order_shipping_tax,$data->order_currency_id);
                }
                echo '</td></tr>';
              }
              if(bccomp($data->order_payment_price,0,5)){
                echo '<tr><td colspan="'.$colspan.'" style="text-align:right">'.JText::_('HIKASHOP_PAYMENT_METHOD').' : '.$currencyHelper->format($data->order_payment_price,$data->order_currency_id).'</td></tr>';
              }
              if(!empty($data->cart->additional)) {
                $exclude_additionnal = explode(',', $config->get('order_additional_hide', ''));
                foreach($data->cart->additional as $additional) {
                  if(in_array($additional->name, $exclude_additionnal)) continue;
                  echo '<tr><td colspan="'.$colspan.'" style="text-align:right">'. JText::_($additional->name).' : ';
                  if(!empty($additional->price_value) || empty($additional->value)) {
                    if($config->get('price_with_tax')){
                      echo $currencyHelper->format($additional->price_value_with_tax, $data->order_currency_id);
                    }else{
                      echo $currencyHelper->format($additional->price_value, $data->order_currency_id);
                    }
                  } else {
                    echo $additional->value;
                  }
                  echo '</td></tr>';
                }
              }
              if($data->cart->full_total->prices[0]->price_value!=$data->cart->full_total->prices[0]->price_value_with_tax){
                if($config->get('detailed_tax_display') && !empty($data->order_tax_info)){
                  foreach($data->order_tax_info as $tax){
                    echo '<tr><td colspan="'.$colspan.'" style="text-align:right">'.$tax->tax_namekey. ' : '.$currencyHelper->format($tax->tax_amount,$data->order_currency_id).'</td></tr>';
                  }
                }else{
                  echo '<tr><td colspan="'.$colspan.'" style="text-align:right">'.JText::sprintf('TOTAL_WITHOUT_VAT',$currencyHelper->format($data->cart->full_total->prices[0]->price_value,$data->order_currency_id)).'</td></tr>';
                }
                $text=JText::sprintf('TOTAL_WITH_VAT',$currencyHelper->format($data->cart->full_total->prices[0]->price_value_with_tax,$data->order_currency_id));
              }else{
                $text=JText::_('HIKASHOP_FINAL_TOTAL'). ' : '.$currencyHelper->format($data->cart->full_total->prices[0]->price_value_with_tax,$data->order_currency_id);
              }
              echo '<tr><td colspan="'.$colspan.'" style="text-align:right;font-weight:bold;">'.$text.'</td></tr>';
              ?>
          </table>
        </td>
      </tr>
      <tr>
        <td height="10">
        </td>
      </tr>
      <tr>
        <td>
          <table width="100%" style="border: 1px solid #DDDDDD;font-family: Verdana, Arial, Helvetica, sans-serif;font-size:12px;">
          <?php
          $params = null;
          $js = '';
          $fieldsClass = hikashop_get('class.field');
          $app =& JFactory::getApplication();
          if($app->isAdmin()){
            $view = 'order';
          }else{
            $view = 'address';
          }
          $template = trim(hikashop_getLayout($view,'address_template',$params,$js));
          if(!empty($data->cart->billing_address)){
            $billing = $template;
            foreach($data->order_addresses_fields as $field){
              $fieldname = $field->field_namekey;
              $address =& $data->order_addresses[$data->cart->billing_address->address_id];
              $billing=str_replace('{'.$fieldname.'}',$fieldsClass->show($field,$address->$fieldname),$billing);
            }
            echo '<tr><td style="font-weight:bold;background-color:#DDDDDD">'.JText::_('HIKASHOP_BILLING_ADDRESS').'</td></tr><tr><td>';
            echo str_replace(array("\r\n","\r","\n"),'<br/>',preg_replace('#{(?:(?!}).)*}#i','',$billing)).'<br/></td></tr>';
          }
          if(!empty($data->order_shipping_method)) {
            $currentShipping = hikashop_import('hikashopshipping',$data->order_shipping_method);
            if(method_exists($currentShipping, 'getShippingAddress')) {
              $override = $currentShipping->getShippingAddress($data->order_shipping_id);
              if($override !== false) {
                $data->override_shipping_address = $override;
              }
            }
          }
          if(!empty($data->override_shipping_address) || (!empty($data->cart->has_shipping) && !empty($data->cart->shipping_address))) echo '<tr><td style="font-weight:bold;background-color:#DDDDDD">'.JText::_('HIKASHOP_SHIPPING_ADDRESS').'</td></tr><tr><td>';
          if(!empty($data->override_shipping_address)) {
            echo $data->override_shipping_address.'<br/></td></tr>';
          } else if(!empty($data->cart->has_shipping) && !empty($data->cart->shipping_address)){
            $shipping = $template;
            foreach($data->order_addresses_fields as $field){
              $fieldname = $field->field_namekey;
              $address =& $data->order_addresses[$data->cart->shipping_address->address_id];
              $shipping=str_replace('{'.$fieldname.'}',$fieldsClass->show($field,$address->$fieldname),$shipping);
            }
            echo str_replace(array("\r\n","\r","\n"),'<br/>',preg_replace('#{(?:(?!}).)*}#i','',$shipping)).'<br/></td></tr>';
          }?>
          </table>
        </td>
      </tr>
      <tr>
        <td><?php
        $fields = $fieldsClass->getFields('frontcomp',$data,'order','');
        foreach($fields as $fieldName => $oneExtraField) {
          if(empty($data->$fieldName)) continue;
          echo "<br/>".$fieldsClass->trans($oneExtraField->field_realname).' : '.$fieldsClass->show($oneExtraField,$data->$fieldName);
        } ?></td>
      </tr>
      <tr>
        <td height="10">
        </td>
      </tr>
<?php
  JPluginHelper::importPlugin('hikashop');
  $dispatcher =& JDispatcher::getInstance();
  $dispatcher->trigger('onAfterOrderProductsListingDisplay', array(&$data->cart, 'email_notification_html'));
?>
      <tr>
        <td>
          <?php
          if(!$app->isAdmin()){
            echo JText::_('ORDER_VALID_AFTER_PAYMENT');
            $config =& hikashop_config();
            if($data->cart->full_total->prices[0]->price_value_with_tax>0 && hikashop_level(1) && $config->get('allow_payment_button',1)){
              global $Itemid;
              $url = '';
              if(!empty($Itemid)){
                $url='&Itemid='.$Itemid;
              }
              $pay_url = hikashop_frontendLink('index.php?option=com_hikashop&ctrl=order&task=pay&order_id='.$data->order_id.$url);
              if($config->get('force_ssl',0) && strpos('https://',$pay_url) === false) {
                $pay_url = str_replace('http://','https://',$pay_url);
              } ?>
              <a href="$pay_url"><?php JText::_('PAY_NOW'); ?></a>
            <?php } ?>
            <br/>
            <br/>
            <?php echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER',HIKASHOP_LIVE);
          }?>
          <br/>
          <br/>
          <?php echo JText::sprintf('BEST_REGARDS_CUSTOMER',$mail->from_name);?>
        </td>
      </tr>
      
      <tr>
        <td height="10">
        </td>
      </tr>
    </tbody>
  </table>
</div>


I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ;)
Last edit: 11 years 10 months ago by Jerome. Reason: please use "code" tag

Please Log in or Create an account to join the conversation.

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
11 years 10 months ago #80549

In that file, you have twice:
$this->config->set(

instead, you should have:
$config->set(

That will remove the fatal error.

The following user(s) said Thank You: holm76

Please Log in or Create an account to join the conversation.

  • Posts: 152
  • Thank you received: 11
11 years 10 months ago #80627

It's working again now.. Thx :)

Edit: After a test there is two fails in the mail

..

Strict Standards: Only variables should be assigned by reference in -bestoil.dk/httpd.www/media/com_hikashop/mail/order_creation_notification.html.modified.php on line 234 Fakturaadresse

and

Strict Standards: Only variables should be assigned by reference in /customers/0/0/5/bestoil.dk/httpd.www/media/com_hikashop/mail/order_creation_notification.html.modified.php on line 289


I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ;)
Attachments:
Last edit: 11 years 10 months ago by holm76.

Please Log in or Create an account to join the conversation.

  • Posts: 152
  • Thank you received: 11
11 years 10 months ago #80681

And another "problem"

When I have to print an invoice from the ordersystem in the backend, we want to send it as a PDF. We make it by a print to pdf. We have our mailpaper defined in the pdf writer, and it works, but in the attached screenshot there is a white box over our logo, where can I chance that?
I have tried use firebug, but can't find the css style
The logo is like the one up in this treat


I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ;)
Attachments:
Last edit: 11 years 10 months ago by holm76.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #80685

Hi,

For the first problem, I think that there is a "=&" at the lines indicated, try to remove the "&".

For the other one, you have to edit the view "order / invoice" in the backend template.

Please Log in or Create an account to join the conversation.

  • Posts: 152
  • Thank you received: 11
11 years 10 months ago #80688

I will try the first..

But the second, what to edit? I have tried some different thing. ex inserting < br /> some places.. but without effect. I have also inserted som extra table rows.. the same nothing happend


I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ;)

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #80715

When you are in the backend and you click on orders, then display and order and click on "invoice" in the toolbar, is the logo displayed correctly ?

If yes, so the problem don't seem to come from HikaShop but from the printer function.

Please Log in or Create an account to join the conversation.

  • Posts: 152
  • Thank you received: 11
11 years 10 months ago #80788

I see it, but the logo is defined in the pdf writer, there for the logo is not in the invoice, because it vil be two different logos on different places.. As you can see there is a white box overlayed the logo.


I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ;)
Last edit: 11 years 10 months ago by holm76.

Please Log in or Create an account to join the conversation.

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
11 years 10 months ago #81039

So you're saying that the problem only happens when you print the invoice into a PDF ? In that case, the problem is with the PDF printer and we can't do much. Maybe you could tr with another PDF printer ?

Please Log in or Create an account to join the conversation.

  • Posts: 152
  • Thank you received: 11
11 years 10 months ago #81155

Thanks for the reply

I thought it was a white box that I could not figure out how to remove.
But found the solution in pdf writeren. There I moved the logo to be placed in a layer above the invoice and it works.


I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ;)

Please Log in or Create an account to join the conversation.

Time to create page: 0.103 seconds
Powered by Kunena Forum