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
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
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: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.
OK i'l do that. If finde the time, could you possibly chow how to make a emty entire cart button in the cart.php page or meybe implement it in the Shop?
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 »

Just add a link to the "cancel" page, this empties the entire cart.
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:Just add a link to the "cancel" page, this empties the entire cart.
OK, Thanks.

Can i make it so when cart is emty, and if a user go to cart i want to go to another page then cart insdead of showing the message Cart is emty in cart page?
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 »

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 »

First post: Yes, but you need to edit the code in the cart.php page

Second post: because the template centers verically the content in each table cell, "middle"

You can change the email templates code to allign "top".
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:First post: Yes, but you need to edit the code in the cart.php page

Second post: because the template centers verically the content in each table cell, "middle"

You can change the email templates code to allign "top".
1. Is it this $strHTML = "<H3>".$empty_cart_label."</H3>"; i change for emty cart to show another page? Do i only put a h ref inside "" ?

2. So is it this code i change middle to top?

Code: Select all

$HTMLmessage .= '<tr>
<td align="center" valign="middle" style="border: '.$border_width.'px '.$border_clr.' '.$border_type.'" bgcolor="'.$header_bgrd_clr.'" height="30">';
$HTMLmessage .=  stripslashes($htmlbodystart);
$HTMLmessage .= '</td>
</tr>';
New question: If i make changes in admin_mail_webshop.php and auto_mail_webshop.php will thows settings be erased if i publish the cart project/site after i made changes?
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:

Patrik, some knowledge of PHP is required to change scripts, otherwise, the author (me, in this case) must change it for you. But please understand that there is no time for this, as I have my own work that I do for living so I can't dedicate hours (literally) just to code / test / debug requests of a single user.
If you need technical assistance, you already know how I work and what my fees are.

To answer your question, you need to replace the line

$strHTML = "<h3>".$empty_cart_label."</h3>";

with a Javascript window.open statement.

Changes to the email templates will not be lost if you republish.


@Kerri: Sorry, what you are asking for requires custom coding. Actually I don't think there is any cart in the world capable of doing this.

Aren't the standard fields provided with each product (you have 8 of thm) enough to gather enough info for each product ?
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 »

Hey, i replaced this: $strHTML = "<h3>".$empty_cart_label."</h3>";

With this:
echo '<script type="text/javascript">'."\n";
echo 'location.href="http://test3.fcab.se/cart/emtycart.php"'."\n";
echo '</script>'."\n";

And that worked. Thank you for your hints George.
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 »

The orders are also emty for me.
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 »

It can be either one or the other. I prefer to have everything in a separate "cart" folder so the root directory remains neat. If you have published on both the root and the "cart" folders, they will both function, but only one of the two will be actually active, depending on the link you have used in your menu. Please also note that you must set the administration backend of the one that is actually active.
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 »

The first patagraph is a summary paragraph. So the steps are actually the ones that are mentioned under 1. , 2. etc.

So when you say that the "cart" folder is already there" it is because of the above.

Regarding the "admincart" folder, sorry, my mistake and thank you for pointing this to me, it is supposed to be the "cart" folder.

Of course, if you use one of these modern FTP clients, you can skip step 4. as by simply dragging / dropping it will create the "cart" folder on the server.

Regarding tthe WB8 folder creation:

Please note that this happems because in the demo project I have this structure:


webshop_plus_3
--->WB8
--->webshop_plus_v3

When YOU open the project instead in WWB, you should replace this folder structure with the one YOU need.

The first one is simply the project name as I have saved it, and it is not important.

The second one (WB8) is the folder where I wanted to publish the project. In your case it is not useful.

So please do this:

1. In WWB8's Site Manager, Drag and drop the entire "webshop_plus_v3" under the top "webshop_plus_3"
2. Remove the (at this point empty) "WB8" folder from the Site Manager
3. Rename the folder "webshop_plus_v3" to "cart"

In the final release all these small issues will be fixed / cleared.
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 »

Not sure what you mean, why can't the "cart.php" page be moved together with the rest of the pages ?

Also please note that the "cart" folder on the server is supposed (according to the Tutorial example" to be in the "root" folder, the content is inside the "cart" folder.
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 »

You can use as many product pages you like, with as many products per page you like, and with whatever name you like. Make user to assign each product a unique ID although the cart doesn't take the ID into consideration and will work anyway.

Pleae change the email address in the "thankyou" page DBTS Form Processor, as ALL your test submissions are coming to me.
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 »

Not sure what you mean.

The backend allows you to change the labels used in the "public" cart pages. They should not affect, in anyway, anything else.

Please clarify.
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 »

I can't reproduce this. I can change Grand Total to whatever I want, and it displays fine.

See for yourself in http://www.dbtechnosystems.com/WB8/webshop_plus_v3_0 where I changed it to Total Amount, for testing purposes, and it works fine.
www.dbtechnosystems.com
Post Reply