Hej derude.
Jeg sidder og bikser med rabatkoder til Simple paypal shopping cart, og jeg kan bare ikke få det til at virke. Jeg har brugt det det plugin her:
http://www.tipsandtricks-hq.com/ecommerce/wordpress-shopping-cart-additional-resources-322
Kurven ser ud til at have fundet ændringene, men begge knapper fører til betaling, og ingen af de rabatkoder jeg har lavet virker.
- discountCode.js har jeg både lagt ind i "wp-admin" --> "js", og jeg har også prøvet "wp-content"-->"plugins"-->"wordpress-simple-paypal-shopping-cart"
- wp_shopping_cart.php har jeg lagt ind, og overskrevet den gamle.
- javascriptet har jeg sat ind som der står, lige før </head>
Kan i hjælpe mig?
Her er den Readme der fulgte med:
1. Open discountCode.js and edit the following variables to suit your preferences:
• Currency
• Number of Decimal Places
• Alert Messages
2. Define the discount codes you wish to use in your basket using the following format:
var discountCodes = {
'PARK10': {theValue: '10', thePercent: '10%', theRef: '#PARK10'},
'UST15': {theValue: '15', thePercent: '15%', theRef: '#UST15'},
'WEAREPARK20': {theValue:'20', thePercent: '20%', theRef: '#WEAREPARK20'} // no comma after last
};
------------------------------------------------------------------------------------------------------------------------
/* INSTALLATION: */
1. Upload:
• wp_shopping_cart.php
to: /wp-content/plugins/wordpress-simple-paypal-shopping-cart
2. Upload:
• discountCode.js
to your root directory or /public_html/
3. Add the following line to the <head> of your template header.php (can be found under Appearance > Editor, and
then select header.php from the list to the right):
<script type="text/JavaScript" src="/discountCodes.js"></script>
4. Done! Enjoy your new discount code abilities!
Er der nogle der kan se hvor fejlen er? Alle forslag modtages da siden gerne skulle op og køre i aften/nat.
Håber på en masse hjælp :-)
resolved