Post by absolutecm » Wed May 21, 2014 7:22 pm

Hi there!


I haven't been able to find the exact method I'm looking for in the forum to accomplish what I'd like with my shop.

What I am trying to do is disable purchasing of my products, essentially turning the shop into a showcase instead, but then have a feature that will allow my client to make a shopping list and email that list to us.

So basic process:

- Client browses shop
- Client adds items to front-end (no-need-to-register) shopping list
- Client add their contact details (email and phone)
- Client sends shopping list to store owner

I know it'd be just as easy for our clients to manually email a list, but it saves on mistakes if the shop generates all the relevant data for a product.

If anyone out in the community can suggest a method or some good extension for accomplishing this I'd be very grateful.

Thank you! :)

Newbie

Posts

Joined
Wed May 21, 2014 7:12 pm

Post by IP_CAM » Thu May 22, 2014 12:57 am

As kind of crazy and backwarded as your Idea may sound at first, it made me think about a usable and relatively 'easy to understand' Customer Solution. But before going into the programming stuff, check those images and think about it.

The Customer needs to have an PDF-Creator on his/her PC. Most do. He/She then creates a pdf-copy of the Shopping Cart, and encloses this PDF-Copy attached to a new Email (directly from the Browser option link) , where the Customer identifies him/herself.

Sorry, used german language...See the additional PRINT Button!?

Image

PDF-File Content View, as produced by different Browser Types:

Image

Image

Image

Image

That's it, let me know..., it's not much code to insert!

Ernie

try it, do NOT register, just order and Print...
http://www.ipc.li/shop/
Last edited by IP_CAM on Wed May 28, 2014 10:23 am, edited 2 times in total.

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by absolutecm » Tue May 27, 2014 4:46 pm

This works perfectly! A very logical solution, is there any way to disable to the ability to purchase the items still?

Newbie

Posts

Joined
Wed May 21, 2014 7:12 pm

Post by IP_CAM » Wed May 28, 2014 1:58 am

Ok, I' think I've got it all together.

DOWNLOAD, as reference, the following VqMod, my option is based on it. You will not need it, exept if you choose to use it as designed, for another Print-Job ( I forget wich one, but I use it's Content somewhere...), ur use it as Sample to create one to do this/your 'Job'!

http://www.opencart.com/index.php?route ... _license=0


ADD TO File:

URL >> /catalog/language/english/english.php <<
WIN >> \catalog\language\english\english.php <<

AFTER the Sub Section Title Line:

Code: Select all

// Buttons
this Line:

Code: Select all

$_['button_skrivut']        = 'Print';
if you use another Language, add the same Line into the same place in your other Language File and rename the Keyword to your Language.

Code: Select all

URL	 >> /catalog/language/german/german.php <<
WIN	 >>  \catalog\language\german\german.php <<
In german, this keyword would be 'Drucken':

and therefore look like:

Code: Select all

$_['button_skrivut']        = 'Drucken';
--

OPEN FILE:

URL >> /catalog/view/theme/default/template/checkout/cart.tpl >>
WIN >> \catalog\view\theme\default\template\checkout\cart.tpl >>

LINE 22-26 (STOCK FILE OC v.1.5.6.1) FIND:

Code: Select all

</h1>
  <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
    <div class="cart-info">
      <table>
        <thead>
REPLACE WITH:

Code: Select all

</h1>
  <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
  <div id="skrivut">
  <script type="text/javascript">function printDiv(skrivut){var dd=document.getElementById(skrivut).innerHTML,ee=document.body.innerHTML;document.body.innerHTML=dd,window.print(),document.body.innerHTML=ee}</script>
    <div class="cart-info">
      <table>
        <thead>
LINE 193-197 (STOCK FILE OC v.1.5.6.1) FIND:

Code: Select all

</div>
  <div class="buttons">
    <div class="right"><a href="<?php echo $checkout; ?>" class="button"><?php echo $button_checkout; ?></a></div>
    <div class="center"><a href="<?php echo $continue; ?>" class="button"><?php echo $button_shopping; ?></a></div>
  </div>

REPLACE WITH:

Code: Select all

 </div></div>
  <div class="buttons">
  <div class="center"><a href="<?php echo $continue; ?>" class="button"><?php echo $button_shopping; ?></a></div>
  <div class="right"><a href="javascript:printDiv('skrivut');" class="button" />Print Page</a></div>
  </div>

Then, it should work, if I did not forget anything, you have not longer a button to proceed to checkout as well.

------

Technical Detail, if some specific Template Set's are used, also for Checkout Pages with activated Banner-, Top-, Footer- and/or Side Sections displayed on Screen.

Positioning this thing here:

Code: Select all

 <div id="skrivut">
  <script type="text/javascript">function printDiv(skrivut)........................ 
will have an effect on HOW a Page is printed out, if you put it up higher, more of the Page Header Part, possibly even some left/right side Sections, will be printed. The visibly 'effective' Cart-View will be affected to a large extend.

So, make sure, it does not print the whole page, but only the CART Section containing important stuff to the Order.

To close the Printout Page Section correctly, it's upmost important to PLACE the >>skrivut<< Section Close MARKER at the right Point.

It's located HERE!
This:

Code: Select all

</div></div>
  <div class="buttons">
would then eventually be required to be changed (back to default) to this:

Code: Select all

</div>
  <div class="buttons">
and the left over

Code: Select all

</div>
would be placed in order to close the 'still open'

Code: Select all

 <div id="skrivut"> 
Section, possibly further down in the File. Just to mention this (Option) as well...

As you see in the Original .xml-file (if you understand how they 'function'), it's placed higher up there, near where the Header starts, used originally, compared with my mod.

I hope I did not forget anything important, it's some time since I made that for you, and beeing such an old fellow already, I have my limits...

Good Luck!
Ernie

PS. A VqMod would do it as well, I know. Anyone is free to do it, I just don't like to, I want to help 'Shopmasters' to 'understand'...

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by pprmkr » Wed May 28, 2014 2:19 pm

absolutecm wrote: So basic process:

- Client browses shop
- Client adds items to front-end (no-need-to-register) shopping list
- Client add their contact details (email and phone)
- Client sends shopping list to store owner
I have made GetQuote, see demo.
Where '-1' as product price : button and action changes.

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands
Who is online

Users browsing this forum: Amazon [Bot] and 22 guests