Jump to content
Sign in to follow this  
Bajex

[Решено] Вывод айди покупки и клиента.

Recommended Posts

Всем здравстуйте, нужна помощь нужно сделать вывод айди заказа и айди пользователя заказывающиего в success заранее всем спасибо.

Share this post


Link to post
Share on other sites

В каком еще success? При успешной отправке заказа?

Share this post


Link to post
Share on other sites

[=== catalog/controller/checkout/success.php ===]

заменить

		if (isset($this->session->data['order_id'])) {
на

		$this->data['show_addon'] = false;
		if (isset($this->session->data['order_id'])) {
			$this->data['show_addon'] = true;
			$this->data['addon_order_id'] = $this->session->data['order_id'];
			if ($this->customer->isLogged()) {
				$this->data['addon_customer_id'] = $this->customer->getId();
			} else {
				$this->data['addon_customer_id'] = 0;
			}
[=== catalog/view/theme/default/common/success.tpl ===]

в нужное место добавить

  <?php if ($show_addon) { ?>
  order_id = <?php echo $addon_order_id; ?>
  <br />
  customer_id = <?php echo $addon_customer_id; ?>
  <?php } ?>

Share this post


Link to post
Share on other sites

На странице есть скрипт для потсчёта, нужна в

 

 

 

<!-- giftvision tracking code start -->
<script type="text/javascript">
(function() {
var zmc = document.createElement('script'); zmc.type = 'text/javascript'; zmc.async = true;
zmc.src = '//tracking.adwad.ru/track.js?p=243&order_id=ID_ЗАКАЗА&summ=сумма заказа';
var z1 = document.getElementsByTagName('script')[0];
z1.parentNode.insertBefore(zmc, z1);
})();
</script>
<!-- giftvision tracking code end -->

 

 Вставить две переменные как реализвать

Share this post


Link to post
Share on other sites

@сумма заказа@ - "стоимость товаров (сумма/подитог)" или "итого" (с налогами/доставками/скидками и прочей прелестью)?

Share this post


Link to post
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
You are posting as a guest. If you have an account, please sign in.
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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.