Jump to content

drillsar

Members
  • Posts

    26
  • Joined

  • Last visited

Profile Information

  • Location
    USA NJ

drillsar's Achievements

Newbie

Newbie (1/14)

1

Reputation

2

Community Answers

  1. Is there away to allow certain product not returnable?
  2. Looking for away to charge for po box shipping or disable it. Thanks
  3. this one seems to work but not available for my version: https://addons.prestashop.com/en/shipping-costs/19772-localized-shipping.html
  4. I am looking for a module that is able to determine ship price by zip code using wildcards. Also capable of percentage of order total and able to add in price. As of now prestashop only allows amount not a percentage. Example zip codes starting with 010* to 089* would be part of a zone. Also looking for a way to disable shipping to po box or charge them according to table like above.
  5. Is this possible with prestashop?
  6. Can this be done in newest version? Where is this file located? For anyone looking to do this, this is the solution I finally came up with. <input type="text" class="form-control" name="address1" id="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{/if}" title="Please enter a valid street address, we do not except P.O. Box addresses" pattern="^(?! *(#\d+|([bB][oO][Xx]|[Bb][Ii][Nn])[-. /\\]?\d+|.*[pP][ .]? ?[Oo0][-. /\\]? *-?(([bB][oO][Xx]|[Bb][Ii][Nn])|b|(#|[Nn][Uu][Mm])?\d+)|[Pp]([Oo][Ss][Tt])? *([Oo]([Ff]{2}([Ii][Cc][Ee])?)?)? *(([bB][oO][Xx]|[Bb][Ii][Nn])|? *\d+|[Pp] *-?/?[Oo]? *-?[bB][oO][Xx]|[Pp][Oo][Ss][Tt] [Oo][Ff][Ff][Ii][Cc][Ee] ([bB][oO][Xx]|[Bb][Ii][Nn])|(([bB][oO][Xx]|[Bb][Ii][Nn])|[Bb]) *([Nn][Uu][Mm][Bb][Ee][Rr]|[Nn][Uu][Mm]|#)? *\d+|([Nn][Uu][Mm][Bb][Ee][Rr]|[Nn][Uu][Mm]|#) *\d+)).*"/> Open up authentication.tpl and find the input fields with the id of "address1" (there should be two of them within the file) and replace them with the code provided above. From what I can tell that should be enough to validate against PO Box addresses inputted into the fiels. No additional code is required. Below you will find the additions and what they do: title="Please enter a valid street address, we do not except P.O. Box addresses" When you enter something into the field that doesn't match the validation criteria you will receive a message telling you to make sure your content is inputted in the correct format but by default it doesn't tell you what the correct format should be. Adding a title attribute will allow you to add content to the validation message that pops up giving the user an indication of why the form will not submit. pattern="^(?! *(#\d+|([bB][oO][Xx]|[Bb][Ii][Nn])[-. /\\]?\d+|.*[pP][ .]? ?[Oo0][-. /\\]? *-?(([bB][oO][Xx]|[Bb][Ii][Nn])|b|(#|[Nn][Uu][Mm])?\d+)|[Pp]([Oo][Ss][Tt])? *([Oo]([Ff]{2}([Ii][Cc][Ee])?)?)? *(([bB][oO][Xx]|[Bb][Ii][Nn])|? *\d+|[Pp] *-?/?[Oo]? *-?[bB][oO][Xx]|[Pp][Oo][Ss][Tt] [Oo][Ff][Ff][Ii][Cc][Ee] ([bB][oO][Xx]|[Bb][Ii][Nn])|(([bB][oO][Xx]|[Bb][Ii][Nn])|[Bb]) *([Nn][Uu][Mm][Bb][Ee][Rr]|[Nn][Uu][Mm]|#)? *\d+|([Nn][Uu][Mm][Bb][Ee][Rr]|[Nn][Uu][Mm]|#) *\d+)).*" The pattern attribute is what tells the input field what is valid and what is not. This pattern can be used to exclude PO boxes is some of the main text formats that people might us (POBOX, P.O box, po bin, etc). Adding this to any text based input field will allow you to make that form validate against PO boxes.
  7. For people that install prestashop for 1st time if you get the following error: Recursive write permissions for www-data user on ~/config/ Recursive write permissions for www-data user on ~/cache/ Recursive write permissions for www-data user on ~/log/ Recursive write permissions for www-data user on ~/img/ Recursive write permissions for www-data user on ~/mails/ Recursive write permissions for www-data user on ~/modules/ Recursive write permissions for www-data user on ~/themes/default-bootstrap/lang/ Recursive write permissions for www-data user on ~/themes/default-bootstrap/pdf/lang/ Recursive write permissions for www-data user on ~/themes/default-bootstrap/cache/ Recursive write permissions for www-data user on ~/translations/ Recursive write permissions for www-data user on ~/upload/ Recursive write permissions for www-data user on ~/download/ Do the following: Add user to group www-data Sudo chown -R user:www-data path to prestashop dir Sudo chmod g+w -R path to prestashop dir After install to make it more secure sudo find . -type f -exec chmod 644 {} \; sudo find . -type d -exec chmod 755 {} \; give group write permissions to following dir's sudo chmod g+w -R app/logs, app/cache, img, modules, translations, upload, download, mails, config, themes Also edit .htaccess in your admin folder and add order deny,allow deny from all allow from IP address chmod 444 .htaccess
  8. I was wondering how to add payment logos in the footer area; like Visa; Mastercard etc and Paypal thanks
  9. I have the Zone North America enabled and says on checkout when using account Unfortunately, there are no carriers available for your delivery address. Guest Checkout works. A bug?
  10. When I check Enable SSL I get a 404 error Not FoundThe requested URL /admin/index.php was not found on this server.
  11. I set the config dir to 777 and still prestashop says set write permissions to config dir The log dir I don't even see where is that?
  12. I am getting a weird display using stripe module at checkout? What page do I perhaps look at? Thanks
  13. I am guessing to edit footer is his module: Themes > Design > Positions And seen Module displayFooter It has 3 modules Link List My Account Contact Info But no Your Company? Which is where the stores is in What I want to do is remove stores in footer section
×
×
  • Create New...