Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • i’m in the process of using wordpress for the purposes of e-commerce since i can tell you its easier than integrating say paypal PHP restApi into your own manually coded site.

    Where you have a main hosting area & use wordpress as a second thought one setup is using wordpress in a sub folder, which seems to be what you have done. Whether something is e-commerce or “bloggy: is probably just a case of just how it looks.

    Basically you install wordpress straight into your main document root ,use themes , static pages & e-commerce plugins so it looks nothing like a blog.

    When you use wordpress as your main setup you don’t want to upload an unzipped wordpress release with its outer directory .basically in your main hosting area you will want to see just wp-admin.wp-content & wp-includes directories with a lot of “loose” files such as index.php.

    To do that on Linux open up a terminal , cd to inside wordpress then at $ type jar cvf anyname.zip .
    the trailing dot is part of the code or
    zip -r anyname.zip .
    This zips up everything inside the outer wordpress directory,the zipped file will be called anyname.zip & it will be inside “wordpress” outer dir.
    Or download a complete backup of your site, clean out everything from main hosting- go to cpanel & use auto installer softaculous to install wordpress

    Once you have wordpress installed its then just a matter of putting woocommerce & woocommerce-gateway-stripe zip files into wp-content/plugins.

    unzip ziped files & activate via dashboard.If anybody wants to play with wordpress i recommend https://freehosting.host/ you can then upload , extract delete & try again to your hearts content

    Thread Starter andybrookestar

    (@andybrookestar)

    went back to dev on local host & found no problem with cart up dating. basically the only difference between local host 7 live is that live has an SSL certificate installed.
    Just did two things 1) added
    `
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    `
    to .htaccess
    2) installed & activated simple SSL from https://wordpress.org/plugins/really-simple-ssl/

    cart is now updating so assuming glitch was something to do with http > https

    The easiest way I find to play with anything involving PHP is to forget Xampp, wamp & just put development directory straight on desktop.

    I’m on Linux put should also work on Windows since PHP platform independent. basically you can run from desktop using two things :
    1) built in php development server
    2) just use sqlite as database instead of MySQl

    to see if dev server works put index.html or index.php inside a directory say called play. You need to open up a terminal (equivalent windows) cd to Desktop & use $php -S localhost:8000 -t play

    open up your browser & type this url in top bar: http://localhost:8000

    for sqlite go to wordpress plugins & search for sqlite

Viewing 3 replies - 1 through 3 (of 3 total)