Webshop Plus! v.3.2 for WWB8

This forum is dedicated to discussions about shopping carts/ecommerce.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Webshop Plus! v.3.2 for WWB8

Post by Navaldesign »

Webshop Plus! v.3.2 has just been released.

Main features:

Webshop Plus! v.3.2 is the evolution of v.2.0 which has been downloaded by more than 1.500 users. It is a very simple but robust cart that works within WWB8 which requires no MySQL Database. Our main concern was to create a user friendly script that will provide most of the features users ask for, with a very easy to understand and use Administration interface. Here are the principal features:
Frontend:
-Products are added directly through WWB, using a form. The script comes complete with a form template that can be used for all products.
-You can have up to 8 options for each product. Options may affect the product price.
-You can assign a Tax ID per product. This is useful for those shops that sell items belonging to different tax categories.
-You can assign the item weight. This is useful to calculate shipping costs per order weight.
-You can assign shipping per item.
-You may, through the Administration interface, define the labels, currency, error messages etc without writing or modifying a single line of code. The easiest way to customize your cart in any language!
-You may use promo (discount) coupons.
-You may select the destination country (for shipping fees calculation).
-New: You may add whatever fields you like in the pages and Webshop Plus 3.0 will automatically handle them. Just add these additional fields, in the desired page / position.
-New: You may insert a “Custom Details” page with whatever fields you like, and set Webshop to display it in the desired order in the checkout process.
-New: You may use file upload fields to upload files required with the order.
-New: You may set Webshop to display added products in a small I-frame instead of displaying the Cart page each time a product is added.
-New: Webshop Plus v.3.2 now sends HTML emails using the DBTS Form processor. You now have full control on how your emails will look like, and you also can set the mailing engine among mail() function, SMTP, Sendmail, Qmail, with or without authentication.
Backend:
You can set all cart properties through the Administration interface:
-Labels: you can set all the labels that will appear in the cart pages and the mails directly through the script, no code required.
-Behavior: you can now set the cart to display the cart contents either in the Cart page or in a small Iframe. No need to do anything, just select the desired option.
-Look: you can define the look of the Cart page through a color selection form, this will set the required look for both the cart page and the emails sent to the Admin and customers.
-PayPal details: you can set your PayPal account details through this page. No need to change any code.
-Shipping areas: you can set countries you want to sell to, and categorize them (for shipping purposes) as National, International 1, International 2, International 3.
-Shipping charges: you can set shipping charges by item, by Order Total Value, by Order Total Weight. You can set your Country of Origin, minimum shipping charges, Handling, and Free shipping Order value .
-New: Administrator Login page with “Forgot Password” feature.
-New: Display cart content in I-frame setting.
-New: Select text direction Left to Right and Right to Left.
-New: Select form character set. Recommended is UTF-8 (default)
-New: Orders are stored in file and you can review, edit or delete them whenever you like!
-New: Orders file can now be exported as CVS file. You can download it on your own PC to rework with Excel.
-New: You can set the CSV separator between “;” and “,” according to your country Excel settings.
-New: you can Print both the Orders list as well as each single Order.
-New: you can set promo codes both as amount and as % and set Start and End dates.
-New: you can define fields that the script needs to process for each of the 3 checkout pages: customer, checkout, custom_details.
-New: you can set the order in which the “Custom Details” page will appear.
-New: added the recently added currencies for PayPal checkout.

Webshop Plus! 3.2 uses the DBTS Form Processor to send HTML emails.

Please make sure to install this extension before attempting to open the WWB8 project .

You can download from http://www.dbtechnosystems.com/WWB8/web ... us_3_2.zip

Please read carefully the manual you will find in the zip.

Please report all issues in this very thread.

Screenshots:
order_mail_screen.jpg
orders_screen.jpg
view_order_screen.jpg
printer_order_screen.jpg
www.dbtechnosystems.com
adex1
 
 
Posts: 167
Joined: Fri Apr 01, 2011 1:13 pm

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by adex1 »

Thanks friend and keep the goodwork.
Navaldesign wrote:No, not yet. Please note that this is a RC version. This means that suggestions through this forum will be implemented (in the limits of my possibilities) in the final release.
Buy Automation Shopping Cart for CMS WEBSHOP + 2.2 Using WB10!
- Use secure gateway to buy using PAYPAL website.
User avatar
kevinp
 
 
Posts: 96
Joined: Wed Feb 21, 2007 2:51 pm
Location: Preston, Lancashire, England

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by kevinp »

Very nice Naval. I'll have a play around with it and report back. Happy New Year. Kevin
User avatar
kevinp
 
 
Posts: 96
Joined: Wed Feb 21, 2007 2:51 pm
Location: Preston, Lancashire, England

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by kevinp »

Hi Naval

The cart is a masterpiece as usual. The only thing I've notices up to now is on the cart page. When changing the shipping country although the total does change to reflect the added shipping costs the actual shipping cost isn't shown as a 'Shipping' column in the cart as in the previous version. Discounts add the extra 'Discount' column OK

I currently have it set for 0 shipping in the UK (National) and £1.99 for Int1 shipping

Hope this makes sense.
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

Hi Kevin,

Thak you. I will check the shipping calculation routine as this seems to be the issue.
www.dbtechnosystems.com
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

Hi Kevin,

I can't reproduce this issue. Look at http://www.dbtechnosystems.com/WB8/webshop_plus_v3/

Seems like the shipping routine is fine.

Please send me a link to your own test cart so I can see how yours behaves. Please also send me the admin username / password to check your shipping settings.
www.dbtechnosystems.com
User avatar
kevinp
 
 
Posts: 96
Joined: Wed Feb 21, 2007 2:51 pm
Location: Preston, Lancashire, England

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by kevinp »

Hi Naval.

That does seem strange.

Your cart auto updates when the country is changed which is a nice touch.

Thanks George
Last edited by kevinp on Tue Jan 03, 2012 11:15 pm, edited 1 time in total.
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

Hi Kevin,

I'm not sure why this happens with your installation, unless there's a bug in the code in the version in the zip.

I will check it and fix it tomorrow.

The auto-update will be included in the final release.
www.dbtechnosystems.com
User avatar
kevinp
 
 
Posts: 96
Joined: Wed Feb 21, 2007 2:51 pm
Location: Preston, Lancashire, England

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by kevinp »

Thanks Naval, much appreciated. The new cart looks very impressive. Nice work as usual. KP
adex1
 
 
Posts: 167
Joined: Fri Apr 01, 2011 1:13 pm

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by adex1 »

Is there a way for currency symbol to change whenever "To correctly calculate shipping charges, if different, please select your delivery country hereby." different country is selected?
Buy Automation Shopping Cart for CMS WEBSHOP + 2.2 Using WB10!
- Use secure gateway to buy using PAYPAL website.
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

adex1 wrote:Is there a way for currency symbol to change whenever "To correctly calculate shipping charges, if different, please select your delivery country hereby." different country is selected?
Not sure what you mean, please clarify.
www.dbtechnosystems.com
adex1
 
 
Posts: 167
Joined: Fri Apr 01, 2011 1:13 pm

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by adex1 »

I mean currency symbol is static in pound (£) if customer country is selected
Navaldesign wrote:
adex1 wrote:Is there a way for currency symbol to change whenever "To correctly calculate shipping charges, if different, please select your delivery country hereby." different country is selected?
Not sure what you mean, please clarify.
Buy Automation Shopping Cart for CMS WEBSHOP + 2.2 Using WB10!
- Use secure gateway to buy using PAYPAL website.
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

Currency symbol is set in PayPal settings page. To make it automatically change with origin country would be complicated and exceeds the limits of a free cart. It woul also require to have conversion tables for all possible currencies and product prices that would be automatically updated in the product pages.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

Hi, I'm now trying your New Webshop. I cany recalculate or checkout from the cart.php page. Could you take a look?

http://test3.fcab.se/cart/

Original login.

Thank's
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

From the Administration area online instructions:

Important! Recalculate, Checkout, and Continue Shopping buttons text.
-------------------------------------------------------------------------------------

You MUST type the text of the 3 buttons used in the "cart" page EXACTLY as you have it in your buttons, or the cart page will not work properly

Recalculate Button text: Uppdatera

Checkout Button text: Checka ut

Continue Shopping Button text: Fortsätt handla

But, you have the three buttons as "Recalculate, Checkout, Continue Shopping"

How can it ever work ?
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

OK, Sorry i missed that :oops:
Thank's
User avatar
ColinM
 
 
Posts: 962
Joined: Wed Feb 09, 2011 3:40 am
Location: Western Australia

Webshop Plus! v.3.0 RC | Alt Web Host Approach?

Post by ColinM »

Hi George,

Rather than taking the installation approach (per the PDF doco pages 4-5 applicable steps), could you not simply extract the downloaded zip file to your project, ensure the DBTS Form Processor is installed in WB (through the forms catagory of the extension manager), then publish all content to your web server as you would a std web project? Or is there content required on your web server that would be missed using this approach?
Yours truly
Colin M
Western Australia
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

Hi Colin,

The backend is not available as WWB project, so the files need be uploaded. Although the backend layout is also developed in WWB and has most code embedded in the pages, I don't like the idea of each user messing with the backend and then asking for support. This is standard even with paid scripts, the backend is never delivered as project of whatever type, to avoid users making amendments. An experienced user can always make amendments to the PHP files, if he has ebough knowledge and coding experience.

It only takes a single Drag & Drop of the entire "cart" folder in your favorite FTP software.

At this point you have the "standard" demo cart working on your hosting account, to test as you like.

Customizing your cart "public" pages simply involves modifying the WWB project and publishing.
www.dbtechnosystems.com
User avatar
ColinM
 
 
Posts: 962
Joined: Wed Feb 09, 2011 3:40 am
Location: Western Australia

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by ColinM »

Ok, thanks for that George - fair enough re the back end comment.

At this point you have the "standard" demo cart working on your hosting account, to test as you like
??? - Did you go to my site - or I'm confused (sorry) as to what you mean by that?

I take it ALL objects and folders in, and subordinate to the cart folder need to be FTP'ed?
Yours truly
Colin M
Western Australia
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

No, I didn't go to your site, what I mean is that once you have FTP'ed the files, "At this point you have the "standard" demo cart working on your hosting account, to test as you like"

With most modern FTP clients, it is enough that you drag and drop the "cart" folder from your computer to the root directory of your hosting account, and ALL content is correctly FTP'ed with the correct folder structure.
www.dbtechnosystems.com
User avatar
ColinM
 
 
Posts: 962
Joined: Wed Feb 09, 2011 3:40 am
Location: Western Australia

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by ColinM »

No, I didn't go to your site, what I mean is that once you have FTP'ed the files, "At this point you have the "standard" demo cart working on your hosting account, to test as you like"
Ahhh! Cheers George 8)

With most moders FTP clients, it is enough that you drag and drop the "cart" folder from your computer to the root directory of your hosting account, and ALL content is correctly FTP'ed with the correct folder structure.
True - so I'll take that as a yes George. :D
Yours truly
Colin M
Western Australia
User avatar
ColinM
 
 
Posts: 962
Joined: Wed Feb 09, 2011 3:40 am
Location: Western Australia

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by ColinM »

By the way George - absolutely AWEsome piece of kit mate! 8)
Yours truly
Colin M
Western Australia
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

Hi, George. Could you take a look at this code, if it would work to implement in your shop, or if and what to change (if you have the time and will?). It is for the Swedish payment service Payson.se

Thank's

The code:

Code: Select all

<?php 

################################################################################### 
// PAYSON parametrar 

// AgentID - finns under menyn "Mitt konto/Integration" när du är inloggad 
$AgentID = '1234'; 

// MD5-nyckel - finns under menyn "Mitt konto/Integration" när du är inloggad 
$Key= '1234abcd-1234-abcd-abc-987654321abcd'; 

// Beskrivning av vad beställning avser, visas i kundens kontohistorik  
$Description = 'Beställning från Ditt butiksnamn'; 

// Butikens eller webbplatsens e-postadress OBS! Måste vara samma som ditt Payson-konto 
$SellerEmail =    'order@dinwebbplats.se'; 

// Totalsumman för beställningen, hämtas från ditt orderformulär 
$payson_totalsumma = $_SESSION['totalsumma']; 

// Köparens e-postadress, hämtas från ditt orderformulär 
$BuyerEmail    = $_SESSION['email']; 

// Totalsumman enligt ovan 
$Cost =    $payson_totalsumma; 
// Totalsumma när du testar din Payson-betalning 
//$Cost =    '5,00'; 

// Extra kostnader som tex frakt 
$ExtraCost = '0,00';  

// Bekräftelse-sida som visas när Payson-betalningen genomförts 
$OkUrl = 'http://dinwebbplats.se/payson_betalning/payson_betalning_klar.php'; 

// Error-sida som visas om Payson-betalningen avbrutits (du behöver normalt inte ange något här) 
$CancelUrl = 'http://dinwebbplats.se/payson_betalning/error.php'; 

// Referensnr som kan vara kundID eller annat som identifierar betalningen 
// Om du inte anger något här kan du använda kundens e-postadress $BuyerEmail för att identifiera betalningen 
$RefNr = $_SESSION['kund_id']; 

// Ange 1 för att inte erbjuda paysongarantin eller 2 för att erbjuda paysongaranti 
// Läs mer om Paysongarantin här: http://www.payson.se/About/Guarantee/  
$GuaranteeOffered = "1"; 

// MD5-hash beräknas från parametrarna ovan 
$MD5string = $SellerEmail . ":" . $Cost . ":" . $ExtraCost . ":" . $OkUrl . ":" . $GuaranteeOffered . $Key; 
$MD5Hash = md5($MD5string); 


################################################################################### 
// PAYSON formulär 
// TEST 
// <form action="https://www.payson.se/testagent/default.aspx" method="post"> 
echo' 
<form action="https://www.payson.se/merchant/default.aspx" method="post"> 
<input type="hidden" name="BuyerEmail" value="'.$BuyerEmail.'" /> 
<input type="hidden" name="AgentID" value="'.$AgentID.'" /> 
<input type="hidden" name="Description" value="'.$Description.'" /> 
<input type="hidden" name="SellerEmail" value="'.$SellerEmail.'" /> 
<input type="hidden" name="Cost" value="'.$Cost.'" /> 
<input type="hidden" name="ExtraCost" value="'.$ExtraCost.'" /> 
<input type="hidden" name="OkUrl" value="'.$OkUrl.'" /> 
<input type="hidden" name="CancelUrl" value="'.$CancelUrl.'" /> 
<input type="hidden" name="RefNr" value="'.$RefNr.'" /> 
<input type="hidden" name="MD5" value="'.$MD5Hash.'" /> 
<input type="hidden" name="GuaranteeOffered" value="'.$GuaranteeOffered.'" /> 
<input type="submit" value="Klicka h&auml;r f&ouml;r att betala!" /> 
<br /><br /> 
<img src="payson_logo/payson145x42.png" alt="Betala med Payson" /> 
</form> 
'; 
################################################################################### 

?> 
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

I believe you can implement it yourself, there should be no difficulties.

I can't implement something so specific as a generic solution, as Webshop aims to be a codeless solution, adding this would mean that I should make lots of additions in the Administartion interface.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

Navaldesign wrote:I believe you can implement it yourself, there should be no difficulties.

I can't implement something so specific as a generic solution, as Webshop aims to be a codeless solution, adding this would mean that I should make lots of additions in the Administartion interface.
OK, i'm not to shore how to implement this. Could i just take value code from the Paypal code and replace the values in the Payson code?

Mayne this way i only need the "form code" not the code upove the form code of Payson code? I'm not shore :oops:
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

The problem are the very first lines,

// Error-sida som visas om Payson-betalningen avbrutits (du behöver normalt inte ange något här)
$CancelUrl = 'http://dinwebbplats.se/payson_betalning/error.php';

// Referensnr som kan vara kundID eller annat som identifierar betalningen
// Om du inte anger något här kan du använda kundens e-postadress $BuyerEmail för att identifiera betalningen
$RefNr = $_SESSION['kund_id'];

// Ange 1 för att inte erbjuda paysongarantin eller 2 för att erbjuda paysongaranti
// Läs mer om Paysongarantin här: http://www.payson.se/About/Guarantee/
$GuaranteeOffered = "1";

// MD5-hash beräknas från parametrarna ovan
$MD5string = $SellerEmail . ":" . $Cost . ":" . $ExtraCost . ":" . $OkUrl . ":" . $GuaranteeOffered . $Key;
$MD5Hash = md5($MD5string);

If you set correctly these lines, the Payson payment button is very simple to use.

Since I don't understand your language and I haven't read the Payson documentation, I don't even know what the variables contained in these lines are.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

I made a translation of thees parameters:

Code: Select all

// Error-page that appears if the Payson-payment is interrupted (you need not normaly enter anything here) 
$CancelUrl = 'http://dinwebbplats.se/payson_betalning/error.php'; 

// Reference number can be customer id, or anything that identifies the payment 
// If you do not specify anything here, you can use the customer's email address $BuyerEmail to identify the payment 
$RefNr = $_SESSION['kund_id']; 

// Enter 1 for not offering Payson Guarantee or two to offer Payson Guarantee 
// Learn more about Payson guarantee here: http://www.payson.se/About/Guarantee/
$GuaranteeOffered = "1"; 

// MD5-hash calculated from the parameters above 
$MD5string = $SellerEmail . ":" . $Cost . ":" . $ExtraCost . ":" . $OkUrl . ":" . $GuaranteeOffered . $Key; 
$MD5Hash = md5($MD5string); 
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

Now i translated the hole thing:
More info: http://api.payson.se/

Code: Select all

<?php 

################################################################################### 
// PAYSON parametrar 

// AgentID - found under the "My Account / Integration" when you are logged in 
$AgentID = '1234'; 

// MD5-key - found under the "My Account / Integration" when you are logged in
$Key= '1234abcd-1234-abcd-abc-987654321abcd'; 

// A description of what the order relates to, is shown in the customer's account history  
$Description = 'Order from Your store name'; 

// Store or the site's email address NOTE! Must be the same as your Payson Account
$SellerEmail =    'order@dinwebbplats.se'; 

// The total of your order, from your order form
$payson_totalsumma = $_SESSION['totalsumma']; 

// Buyer's e-mail, from your order form 
$BuyerEmail    = $_SESSION['email']; 

// Grand total from the parameters above 
$Cost =    $payson_totalsumma; 
// Grand total when you test your Payson-payment
//$Cost =    '5,00'; 

// Additional costs such as shipping 
$ExtraCost = '0,00';  

// The confirmation page that appears when Payson-payment has been made
$OkUrl = 'http://dinwebbplats.se/payson_betalning/payson_betalning_klar.php'; 

// Error-page that appears on the Payson-payment is interrupted (you need not normaly enter anything here)
$CancelUrl = 'http://dinwebbplats.se/payson_betalning/error.php'; 

// Reference can be customer id, or anything that identifies the payment
// If you do not specify anything here, you can use the customer's email address $BuyerEmail to identify the payment 
$RefNr = $_SESSION['kund_id']; 

// Enter 1 for not offering Payson warranty or two to offer Payson Guarantee
// Learn more about this Paysongarantin: http://www.payson.se/About/Guarantee/  
$GuaranteeOffered = "1"; 

// MD5-hash calculated from the parameters above
$MD5string = $SellerEmail . ":" . $Cost . ":" . $ExtraCost . ":" . $OkUrl . ":" . $GuaranteeOffered . $Key; 
$MD5Hash = md5($MD5string); 


################################################################################### 
// PAYSON form 
// TEST 
// <form action="https://www.payson.se/testagent/default.aspx" method="post"> 
echo' 
<form action="https://www.payson.se/merchant/default.aspx" method="post"> 
<input type="hidden" name="BuyerEmail" value="'.$BuyerEmail.'" /> 
<input type="hidden" name="AgentID" value="'.$AgentID.'" /> 
<input type="hidden" name="Description" value="'.$Description.'" /> 
<input type="hidden" name="SellerEmail" value="'.$SellerEmail.'" /> 
<input type="hidden" name="Cost" value="'.$Cost.'" /> 
<input type="hidden" name="ExtraCost" value="'.$ExtraCost.'" /> 
<input type="hidden" name="OkUrl" value="'.$OkUrl.'" /> 
<input type="hidden" name="CancelUrl" value="'.$CancelUrl.'" /> 
<input type="hidden" name="RefNr" value="'.$RefNr.'" /> 
<input type="hidden" name="MD5" value="'.$MD5Hash.'" /> 
<input type="hidden" name="GuaranteeOffered" value="'.$GuaranteeOffered.'" /> 
<input type="submit" value="click here to pay!" /> 
<br /><br /> 
<img src="payson_logo/payson145x42.png" alt="Pay with Payson" /> 
</form> 
'; 
################################################################################### 

?> 
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

Code: Select all

<?php 

################################################################################### 
// PAYSON parametrar 

// AgentID - found under the "My Account / Integration" when you are logged in 
$AgentID = '1234'; 

// MD5-key - found under the "My Account / Integration" when you are logged in
$Key= '1234abcd-1234-abcd-abc-987654321abcd'; 

// A description of what the order relates to, is shown in the customer's account history  
$Description = $dbts_title.' Order '.$orderid; 

// Store or the site's email address NOTE! Must be the same as your Payson Account
$SellerEmail =    'order@dinwebbplats.se'; 

// The total of your order, from your order form
$payson_totalsumma = $_SESSION['nettotal']; 

// Buyer's e-mail, from your order form 
$BuyerEmail    = $_SESSION['email']; 

// Grand total from the parameters above 
$Cost =    $payson_totalsumma; 
// Grand total when you test your Payson-payment
//$Cost =    '5,00'; 

// Additional costs such as shipping 
$ExtraCost = $_SESSION['shipping1'] + $_SESSION['handling'];  

// The confirmation page that appears when Payson-payment has been made
$OkUrl = 'http://dinwebbplats.se/payson_betalning/payson_betalning_klar.php'; 

// Error-page that appears on the Payson-payment is interrupted (you need not normaly enter anything here)
$CancelUrl = 'http://dinwebbplats.se/payson_betalning/error.php'; 

// Reference can be customer id, or anything that identifies the payment
// If you do not specify anything here, you can use the customer's email address $BuyerEmail to identify the payment 
$RefNr = $orderid; 

// Enter 1 for not offering Payson warranty or two to offer Payson Guarantee
// Learn more about this Paysongarantin: http://www.payson.se/About/Guarantee/  
$GuaranteeOffered = "1"; 

// MD5-hash calculated from the parameters above
$MD5string = $SellerEmail . ":" . $Cost . ":" . $ExtraCost . ":" . $OkUrl . ":" . $GuaranteeOffered . $Key; 
$MD5Hash = md5($MD5string); 




################################################################################### 
// PAYSON formulär 
// TEST 
// <form action="https://www.payson.se/testagent/default.aspx" method="post"> 
echo' 
<form action="https://www.payson.se/merchant/default.aspx" method="post"> 
<input type="hidden" name="BuyerEmail" value="'.$BuyerEmail.'" /> 
<input type="hidden" name="AgentID" value="'.$AgentID.'" /> 
<input type="hidden" name="Description" value="'.$Description.'" /> 
<input type="hidden" name="SellerEmail" value="'.$SellerEmail.'" /> 
<input type="hidden" name="Cost" value="'.$Cost.'" /> 
<input type="hidden" name="ExtraCost" value="'.$ExtraCost.'" /> 
<input type="hidden" name="OkUrl" value="'.$OkUrl.'" /> 
<input type="hidden" name="CancelUrl" value="'.$CancelUrl.'" /> 
<input type="hidden" name="RefNr" value="'.$RefNr.'" /> 
<input type="hidden" name="MD5" value="'.$MD5Hash.'" /> 
<input type="hidden" name="GuaranteeOffered" value="'.$GuaranteeOffered.'" /> 
<input type="submit" value="Klicka h&auml;r f&ouml;r att betala!" /> 
<br /><br /> 
<img src="payson_logo/payson145x42.png" alt="Betala med Payson" /> 
</form> 
'; 
################################################################################### 

?> 

But you will probably need to also convert amounts to the 100,00 format (Paypal uses . instead of ,)
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

Navaldesign wrote:

Code: Select all

<?php 

OK Thank's i'l try this. How to put a a Payson option in the combobox in checkout.php page (the combobox whare the Paypal payment option is) The best would be if i could just add the Payson code/Button in the same page as the Paypal code/Button. Do i just chnage the Combobox Pypal option to ex, Paypal / Payson and then add the Payson code in a second html box in the thankyou.php page?

################################################################################### 
// PAYSON parametrar 

// AgentID - found under the "My Account / Integration" when you are logged in 
$AgentID = '1234'; 

// MD5-key - found under the "My Account / Integration" when you are logged in
$Key= '1234abcd-1234-abcd-abc-987654321abcd'; 

// A description of what the order relates to, is shown in the customer's account history  
$Description = $dbts_title.' Order '.$orderid; 

// Store or the site's email address NOTE! Must be the same as your Payson Account
$SellerEmail =    'order@dinwebbplats.se'; 

// The total of your order, from your order form
$payson_totalsumma = $_SESSION['nettotal']; 

// Buyer's e-mail, from your order form 
$BuyerEmail    = $_SESSION['email']; 

// Grand total from the parameters above 
$Cost =    $payson_totalsumma; 
// Grand total when you test your Payson-payment
//$Cost =    '5,00'; 

// Additional costs such as shipping 
$ExtraCost = $_SESSION['shipping1'] + $_SESSION['handling'];  

// The confirmation page that appears when Payson-payment has been made
$OkUrl = 'http://dinwebbplats.se/payson_betalning/payson_betalning_klar.php'; 

// Error-page that appears on the Payson-payment is interrupted (you need not normaly enter anything here)
$CancelUrl = 'http://dinwebbplats.se/payson_betalning/error.php'; 

// Reference can be customer id, or anything that identifies the payment
// If you do not specify anything here, you can use the customer's email address $BuyerEmail to identify the payment 
$RefNr = $orderid; 

// Enter 1 for not offering Payson warranty or two to offer Payson Guarantee
// Learn more about this Paysongarantin: http://www.payson.se/About/Guarantee/  
$GuaranteeOffered = "1"; 

// MD5-hash calculated from the parameters above
$MD5string = $SellerEmail . ":" . $Cost . ":" . $ExtraCost . ":" . $OkUrl . ":" . $GuaranteeOffered . $Key; 
$MD5Hash = md5($MD5string); 




################################################################################### 
// PAYSON formulär 
// TEST 
// <form action="https://www.payson.se/testagent/default.aspx" method="post"> 
echo' 
<form action="https://www.payson.se/merchant/default.aspx" method="post"> 
<input type="hidden" name="BuyerEmail" value="'.$BuyerEmail.'" /> 
<input type="hidden" name="AgentID" value="'.$AgentID.'" /> 
<input type="hidden" name="Description" value="'.$Description.'" /> 
<input type="hidden" name="SellerEmail" value="'.$SellerEmail.'" /> 
<input type="hidden" name="Cost" value="'.$Cost.'" /> 
<input type="hidden" name="ExtraCost" value="'.$ExtraCost.'" /> 
<input type="hidden" name="OkUrl" value="'.$OkUrl.'" /> 
<input type="hidden" name="CancelUrl" value="'.$CancelUrl.'" /> 
<input type="hidden" name="RefNr" value="'.$RefNr.'" /> 
<input type="hidden" name="MD5" value="'.$MD5Hash.'" /> 
<input type="hidden" name="GuaranteeOffered" value="'.$GuaranteeOffered.'" /> 
<input type="submit" value="Klicka h&auml;r f&ouml;r att betala!" /> 
<br /><br /> 
<img src="payson_logo/payson145x42.png" alt="Betala med Payson" /> 
</form> 
'; 
################################################################################### 

?> 

But you will probably need to also convert amounts to the 100,00 format (Paypal uses . instead of ,)
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

OK i got it working now. I made a thankyou2.php page and put the Payson code in it incl, this befor the form: if ($_SESSION['paymenttype'] == "Payson")
{
$form = '
and this after: echo $form;

and it worked, but i dident get redirected to thankyou2.php page i still come to thankyou.php page and no button at all.

So i put the Payson code in the thankyou.php page as well as the Paypal code. Now if i choos Payson as payment type i get the Payson payment button, but the Paypal button dont show

I would like for bouth the payment buttons to be there or if i can get it to work so that i get redirected to thankyou2.php page for the Payson option?
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

You can't redirect to any other page than "thankyou"

If you want both, just remove the if statement (leaving in place the part that is between the { and }

if(....) Remove this line
{ Remove this line
........
........
........
........
} Remove this line
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

Navaldesign wrote:You can't redirect to any other page than "thankyou"

If you want both, just remove the if statement (leaving in place the part that is between the { and }

if(....) Remove this line
{ Remove this line
........
........
........
........
} Remove this line
OK. I'l try that. Thank you for your help. I'v been trying to implement this for a long time. So thank you so much.

Regards

/Patrik.
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

Hi, in cart1.php you have this line in the cart Items in Cart: 1.00
Could that bee changed so it says only Items in Cart: 1
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

Yes.

Open the cart 1 HTML, Start of page, and edit this line

$tq = number_format($total_quantity, 2);

to

$tq = $total_quantity;

It is almost at the bottom of the code.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

Great. Thank you.
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

I suggest that you wait a bit, until the final version (stable) is released. I will then include instructions on the upgrade.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

Hi, i have a question. I have added an option in Payment option (Invoice) in the checkout page.
Now in the thankyou page whare the Paypal button would appear if the user choosed to pay via Paypal, i want a submittbutton to appear if a user choos to pay via Invoice. And that submit bouton chould take the user to invoicethankyou.php page

How could i do that?

Thank's
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

What would a "submit" button do in that page ?? There is no form in that page (other than the PayPal button, which is a form)

So what purpose would this "submit" button serve ??
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

Navaldesign wrote:What would a "submit" button do in that page ?? There is no form in that page (other than the PayPal button, which is a form)

So what purpose would this "submit" button serve ??
I figuerd it out now:

Code: Select all

?php 

if ($_SESSION['paymenttype'] == "Faktura")
{ 
$form = '
<form action="./faktsend.php" method="post"> 
<a href="./faktsend.php"><img src="images/fakturabet2.png" id="Image5" alt="" border="0" style="width:180px;height:66px;"></a></div>
<input type="submit" id="Button1" name="" value="" class="" style="">
</form> 
'; 
echo $form;
}


?> 
I just want a pay by invoice image link to appear if a user has choosen to pay by invoice. Like if a user chooses to pay with Paypal then the PayPal pay button would appear.
so it dont need to bee a submit button, could just be a image link to the page faktsend.php

And in the faktsend.php page i will have information about the invoice ex, rules and to let the user know that an invoice will bee sent out in no loger that 48 hrs, etc.
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

You can use a button (not submit) or an image, linked to the invoice details page.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

Navaldesign wrote:You can use a button (not submit) or an image, linked to the invoice details page.
Yes i got it, the code i posted works.

Thank you.
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

Code: Select all

<?php 
if ($_SESSION['paymenttype'] == "Faktura")
{ 
?>
<a href="./faktsend.php"><img src="images/fakturabet2.png" id="Image5" alt="" border="0" style="width:180px;height:66px;"></a>
<?php
}
?>


This is enough, you need no form !
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

Navaldesign wrote:

Code: Select all

<?php 
if ($_SESSION['paymenttype'] == "Faktura")
{ 
?>
<a href="./faktsend.php"><img src="images/fakturabet2.png" id="Image5" alt="" border="0" style="width:180px;height:66px;"></a>
<?php
}
?>


This is enough, you need no form !
Ohh i see i tryed somthing like this but i dident have the php break code so it dident work. That is, i dident have ?> before a href and not <?php after.

Thank you i'l change this.
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

How can i do this (see img).
And is it possibe that in Paypal settings to put the curency symbol after the ammount, like ex, 5212.00 kr if i have set the symbol to kr?

Image
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

1. You can edit the admin_mail_webshop.php and auto_mail_webshop.php templates in the cart/dbts_includes folder.

2. Not sure what you mean
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

Navaldesign wrote:1. You can edit the admin_mail_webshop.php and auto_mail_webshop.php templates in the cart/dbts_includes folder.

2. Not sure what you mean
1. So do they bouth containe the comma i want to remove?

2. Well normaly the currency symbol is ahead of the amount like this: $5012.00 but i want it like this: 5012.00 skr
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

The comma is part of the template.

To change the currency symbol order you also need to modify the codes.
www.dbtechnosystems.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Patrik iden »

Navaldesign wrote:The comma is part of the template.

To change the currency symbol order you also need to modify the codes.
OK can you tell how?
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Webshop Plus! v.3.0 RC (Release Candidate)

Post by Navaldesign »

Patrik please understand that all this is a free extra to WWB. They are provided "AS IS". It is impossible to teach you how to code in PHP or how to modify the standard tools, at least not without losing valuable time.

Just open the files, and have a look, then try at least to find out by yourself.
www.dbtechnosystems.com
Post Reply