Webshop Plus! v.3.2 for WWB8
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
OK, Sorry i missed that
Thank's
Thank's
Webshop Plus! v.3.0 RC | Alt Web Host Approach?
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?
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
Colin M
Western Australia
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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.
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
Re: Webshop Plus! v.3.0 RC (Release Candidate)
Ok, thanks for that George - fair enough re the back end comment.
I take it ALL objects and folders in, and subordinate to the cart folder need to be FTP'ed?
??? - Did you go to my site - or I'm confused (sorry) as to what you mean by that?At this point you have the "standard" demo cart working on your hosting account, to test as you like
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
Colin M
Western Australia
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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.
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
Re: Webshop Plus! v.3.0 RC (Release Candidate)
Ahhh! Cheers GeorgeNo, 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"
True - so I'll take that as a yes George.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.
Yours truly
Colin M
Western Australia
Colin M
Western Australia
Re: Webshop Plus! v.3.0 RC (Release Candidate)
By the way George - absolutely AWEsome piece of kit mate!
Yours truly
Colin M
Western Australia
Colin M
Western Australia
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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:
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är för att betala!" />
<br /><br />
<img src="payson_logo/payson145x42.png" alt="Betala med Payson" />
</form>
';
###################################################################################
?>
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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.
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
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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?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.
Mayne this way i only need the "form code" not the code upove the form code of Payson code? I'm not shore
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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.
// 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
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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);
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
Now i translated the hole thing:
More info: http://api.payson.se/
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>
';
###################################################################################
?>
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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är fö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
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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är fö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 ,)
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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?
{
$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?
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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
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
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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.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
Regards
/Patrik.
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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
Could that bee changed so it says only Items in Cart: 1
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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.
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
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
Great. Thank you.
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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
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
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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 ??
So what purpose would this "submit" button serve ??
www.dbtechnosystems.com
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
I figuerd it out now: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 ??
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;
}
?>
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.
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
You can use a button (not submit) or an image, linked to the invoice details page.
www.dbtechnosystems.com
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
Yes i got it, the code i posted works.Navaldesign wrote:You can use a button (not submit) or an image, linked to the invoice details page.
Thank you.
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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.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 !
Thank you i'l change this.
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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?
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?
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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
2. Not sure what you mean
www.dbtechnosystems.com
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
1. So do they bouth containe the comma i want to remove?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
2. Well normaly the currency symbol is ahead of the amount like this: $5012.00 but i want it like this: 5012.00 skr
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
The comma is part of the template.
To change the currency symbol order you also need to modify the codes.
To change the currency symbol order you also need to modify the codes.
www.dbtechnosystems.com
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
OK can you tell how?Navaldesign wrote:The comma is part of the template.
To change the currency symbol order you also need to modify the codes.
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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.
Just open the files, and have a look, then try at least to find out by yourself.
www.dbtechnosystems.com
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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?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.
Thank's
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
Just add a link to the "cancel" page, this empties the entire cart.
www.dbtechnosystems.com
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
OK, Thanks.Navaldesign wrote:Just add a link to the "cancel" page, this empties the entire cart.
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?
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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".
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
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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 "" ?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".
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>';
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
@ 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 ?
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
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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.
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.
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Webshop Plus! v.3.0 RC (Release Candidate)
The orders are also emty for me.
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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.
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
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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.
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
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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.
Pleae change the email address in the "thankyou" page DBTS Form Processor, as ALL your test submissions are coming to me.
www.dbtechnosystems.com
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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.
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
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus! v.3.0 RC (Release Candidate)
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.
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