#1467 open

User management / ecommerce

Reported by peters@slx-online.biz | June 30th, 2022 @ 12:18 PM | in User issues

Today I have added eCommerce to the web site to replace the old Shop page. A couple of strange things have happened (one a while ago, one today):

First pass at enabling eCommerce I ticked Use Simple Permissions. When I went to check a username, it says I can no longer create admin accounts on the "manage customers" page. (Capture.jpg)

I went back and unticked that option. The problem remains.

I cannot say for sure this happened when setting up the eCommerce, but it's there now. How do I fix that please?

The other problem concerns the top left logo in the nav bar. I added this initially by putting the image url into the General tab. If I make any config changes the field just says <img src= and it's gone from config.php. I put the url back in there (Capture1):


and it's OK till the next time I make a config change. I know that's probably not the right way to put an image up there, is there a 'proper' way or is it possible to stop the config getting messed up?

Thank you.

Comments and changes to this ticket

  • peters@slx-online.biz
  • peters@slx-online.biz

    peters@slx-online.biz June 30th, 2022 @ 12:28 PM

    One other thing - setting up the store, store configuration only allows US - there are no other countries in the pull-down.

  • peters@slx-online.biz

    peters@slx-online.biz June 30th, 2022 @ 12:57 PM

    Sorry, I found the country setup so please ignore that question... Having a hard day!

  • peters@slx-online.biz

    peters@slx-online.biz June 30th, 2022 @ 03:02 PM

    Thanks. I just tried editing an admin user and it let me do it. Maybe it's just the words that need to say can't manage admin users when that is true?

    Just tried putting a background image in class navbar-brand but it doesn't display. I'll keep working on that one.

  • peters@slx-online.biz

    peters@slx-online.biz June 30th, 2022 @ 03:07 PM

    The create new user screen comes up OK. Although it says "You will not be able to create, modify or remove administrator accounts (these options will be disabled). " they are not disabled.

    I did manage to corrupt config.php while creating ecommerce settings and I couldn't get into the site at all. I uploaded the 'before' config.php and I'm back in, but with no ecommerce - I guess I expected that. I'll try again. Seems to be my week for breaking things.

  • peters@slx-online.biz

    peters@slx-online.biz June 30th, 2022 @ 04:14 PM

    I was mucking around with the CSS in the area you suggested. The problem I seem to have is that the space for the logo alone is not reserved. If I put text in the general configuration settings, like "BTS" I can see a partial background image. It refuses to be any bigger than the text size. I need to stop now for the day, my next move would be to try and reserve space for the image, but not sure yet how best to do that.

    I tyhink on the user management page it might help if the words were, for example, " Unless you are an administrator, you will not be able to create, modify or remove administrator accounts (these options will be disabled). "

  • peters@slx-online.biz

    peters@slx-online.biz July 2nd, 2022 @ 09:20 AM

    Hi Dave. I am still struggling with the logo and one more thing on the top nav menu. Please can you help?

    1. As described above, if the site organisation name in general settings is blank, no space is reserved in which to insert the logo. I tried variations of your suggested CSS but to no avail. I have not succeeded in inserting the image any other way than my manual update of config.php. If I save any configuration changes I have to go back and reinsert the logo manually. I understand your caveat about <> in the config which presumably is why the logo disappears when I save. Even if I put text in the name field, the area is too small for the logo. My guess might be that somewhere in the CSS I can make the text invisible and resize its space large enough for the image? It's 'just' a case of finding where, but code inspector is not really helping me pin it down.

    2. I want to change the colour of the menu item for the active page. .navbar-light .navbar-nav .nav-link:active { color: #800a00; } makes the menu text change momentarily as you click it, but then changes state back to the normal colour. How do I make :active stick?


    BTW every time I log in I am told 2.6.1 is available as of 'today' and to click the link. How do I stop this until it is really available please?


  • peters@slx-online.biz

    peters@slx-online.biz July 2nd, 2022 @ 10:46 AM

    Thank you, I'll have a go later on, a bit busy this morning outside! Peter.

  • peters@slx-online.biz

    peters@slx-online.biz July 4th, 2022 @ 12:43 PM

    Success! I keep forgetting about tpl files - maybe because there are so many and I don't have any real overview what they all do. So the site brand no longer appears in config.php and the logo behaves as designed. Active tab text also good.

    Thank you again.

  • peters@slx-online.biz

    peters@slx-online.biz July 5th, 2022 @ 12:21 PM

    I am now installing eCommerce. A couple of strange happenings:

    • I set up Locations as United Kingdom only. I unticked USA but all the states remain ticked (would be good if they automatically went away if you untick USA). I unticked them all one at a time, went into UK settings. Saved that and all the states are ticked again.

    • In general settings I set the Store Name etc and save. When I go back Store Name is back to My Store. Because of above, although it says UK in general settings it still says zip code (and all the states are there, because they were reset as mentioned above).

    I have used the Sandbox API codes for both live and sandbox for now. PayPal is not cooperating in setting up live API - their site is a bloody mess trying to find things that should be there but aren't where you look... I assume I can continue with live = sandbox API, or is that causing my other problems?


  • peters@slx-online.biz

    peters@slx-online.biz July 5th, 2022 @ 01:17 PM

    Hi Dave. Are you away for long? I can do other things like adding categories and products in the meantime. I can't progress setting up the basic shop settings until it stops putting all the US states back in by itself and changing the store name back to default. I know I need 2 API's, I just wondered if for now I can leave the same info for both while I do the rest, but before testing.


  • peters@slx-online.biz

    peters@slx-online.biz July 5th, 2022 @ 03:07 PM

    It has decided now not to put in the US states after I accidentally deleted UK (it didn't ask if I was sure...) and put it in again. Store name and postcode still won't stick after saving. I'll try a manual db update maybe.

  • peters@slx-online.biz

    peters@slx-online.biz July 6th, 2022 @ 05:44 PM

    I've made quite a bit of progress but am finding problems as I go along. The APIs are fully set up. I have run a test transaction in the sandbox.

    As you're out for the next couple of days, I'll carry on with setting up and testing. I may find some things were me, but any issues left over by Friday PM I will list here for you.


  • peters@slx-online.biz

    peters@slx-online.biz July 8th, 2022 @ 10:21 AM

    I have now got to the point where I need some help with a few problems. Some of these are terminology issues which I can work around, although it would help if I knew where to change them, I looked in 'lang' and found one or two but not all.

    Critical for progress are: Not saving some settings, shipping options, shipping price on product page, error codes before & after PayPal, creating shop on web pages. I am assuming I'll need to do some css customisation along the way. Here is the list of problems I have encountered:

    E-Commerce -> Store Setup -> Store General Settings -- won't save
    -- Wording - Zip Code --> Postcode -> Manage Locations -- no UK counties

    Note: Don't need tax rates as not VAT registered, but for info:
    -> Manage Taxes -> -- created new tax rate - existing not displayed -> Add a tax rate -- Select VAT, Zone = all US states + UK -> Manage Tax Classes -- Only allows change class name -> Manage Tax Classes -- All US states + UK

    Add Product -> General -> Model# / SKU -- Need ISBN
    -> Manufacturer -- Need Publisher -> Pricing -- Need per item postage rate -> Shipping - see above & next --

    Shipping Options -> -> Shipping Options -- Added Royal Mail - default based on order total / shipping speed
    -- Needed UK / EUR / World, used 'shipping speed' - problem when odering

    Products -> Manage Manufacturers -- Publishers

    Manage Orders -> Lists orders but no actions menu to actually manage

    Placing an order

    Checkout -> Errors - see image 1
    Return from PayPal -> Errors - image 2

    Shipping -> No obvious way to record as shipped

    Put shop on website

    No obvious way. Documentation suggests there should be shop modules alongside text / snippets etc but they don't exist


    Terminology - how to change?

  • peters@slx-online.biz

    peters@slx-online.biz July 9th, 2022 @ 09:53 AM

    Hi Dave. Many thanks for your comprehensive reply. I've been through it, here's an update:

    • Database is 10.3.35-MariaDB protocol version 10

    • UK counties - I think I'll skip this for now. Here's a list here for info - https://www.genuki.org.uk/big/Regions/Codes . Interesting scenario here - codes are e.g. I am in Hampshire = GB-HAM. International code foe example on cars was GB until our wonderful faux-pas called Brexit when they decided to use UK instead. I wonder how long before the counties change to UK-HAM !!

    • Tax - VAT is different. As the charity is not registered for VAT there is no additional tax. So I'll leave that for now too.

    • Terminology - I will trawl through the lang file, some are there some not. If not can I just add to the left side the phrase I want to change in the same format as the others, without causing issues?

    • Order status is just shown as a number 1. There is a setup page for status codes, but the impression is that only one is active at a time, and I don't see a setting to change say a numeric 1 to "order received" on the manage orders page.

    • Activate modules - I should have known that, but it's been so long....

    • Shipping - will do new ticket

    • Warnings - never heard of upcharge before now, Google tells me what it is but there aren't any. This will be a small, simple site selling books with a fixed postage rate for UK, Eur and WW. Another one I've not heard of before is "spawning orders"... Google helps, but I don't think we'll be doing that either!

  • peters@slx-online.biz

    peters@slx-online.biz July 9th, 2022 @ 02:55 PM

    Thanks Dave. I do understand the flow of an order, but the problem I have is that status is shown just as a numeric "1" - rather than something meaningful in English. Shop admin will be by someone doing low volume usage and probably low technical skills, so I'd like to make it as simple as possible. I read the help before, if I understand it, it says the order status is updated automatically as steps are completed. The settings page isn't very intuitive, it just says one of them is the default but no means of changing what is displayed.

    Language update is as I thought, than you for confirming.

  • peters@slx-online.biz

    peters@slx-online.biz July 10th, 2022 @ 09:40 AM

    I'll do some more sandbox tests...

  • peters@slx-online.biz

    peters@slx-online.biz July 11th, 2022 @ 09:04 AM

    Please could you let me know when you might be able to sort out the problem where I can't save general settings. I do need to get these set up now in order to move forward. Just to confirm database is Database is 10.3.35-MariaDB protocol version 10. Everything else is saving OK, just all of the general settings won't save.


  • peters@slx-online.biz

    peters@slx-online.biz July 14th, 2022 @ 03:12 PM

    Sorry for the delay in replying. In between having a bit of a life (all this work is voluntary / free of charge!) and adding products and experimenting with shipping options...

    Anyway I turned error reporting off just now and the general setting are being saved. Also the warnings seem to have gone.

    The log is 109MB so can't attach here. Which email address should I use, or do you not need it for now as things seem to be working?

  • peters@slx-online.biz
  • peters@slx-online.biz

    peters@slx-online.biz July 15th, 2022 @ 08:11 AM

    I'm glad you've got a lead on this. My shop is coming along nicely now. Yesterday was change-all-the-colours-and-change-some-wording day!

    In General Settings / Site I tried to imbed the logo, a jpg, into the field for what appears at the top of an invoice. After saving there are extra quotes in the source and the image is not displayed. I can live without a logo if necessary.

    I did some screenshots but I can't upload - "Upload Quota Reached" - I'll email.


  • peters@slx-online.biz

    peters@slx-online.biz July 15th, 2022 @ 05:04 PM

    OK, thanks for letting me know. Peter.

  • peters@slx-online.biz

    peters@slx-online.biz July 16th, 2022 @ 03:41 PM

    I think I've come across another couple of bugs.

    1. The annoying one - moving the store modules from the test page to the shop page, I added the Store Front to display all categories and default view. So far so good. Then I switched it to images view and it screwed up. Images capture/1/2 - sending zipped as quota reached. I had to delete the page by first selecting another page to get the Exponent headliner back and start again.

    2. When I click on the shop in the menu, the storefront is surrounded by text modules. It shows the categories vertically and with images out of the shop. If I click on a category then click back to store, it changes to the 'no-image' I created and displays horizontally as specified. capture3/4.

    May not be a bug, just me, but if I put something in the basket, the basket displays. If I say continue shopping it disappears. If I don't put anything else in the basket there's no obvious way to get to it.

    I'd also like to change 'continue shopping' on screens where it appears, and 'store' on breadcrumbs to go all the way back to the Shop page.

  • peters@slx-online.biz

    peters@slx-online.biz July 17th, 2022 @ 08:11 AM

    It's happened again. Updating the store front to show all products and categories, when I saved it I get the partial screen then it dies. With error reporting on, at the bottom of the partial screen:

    Fatal error: Uncaught Error: Call to undefined method stdClass::getCategoryImage() in /home/britisht/public_html/2-6-0/tmp/views_c/bootstrap5_ad47f2bd1a9754e53a9de9964eac2b94^fe8023efe043a476ed4547b0c57a168b3d7b98dc_0.file.showFullTree_images.tpl.php:170 Stack trace: #0 /home/britisht/public_html/2-6-0/external/smarty-4.0.4/libs/sysplugins/smarty_template_resource_base.php(123): content_62d3c2ec3005f2_03409045(Object(Smarty_Internal_Template)) #1 /home/britisht/public_html/2-6-0/external/smarty-4.0.4/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template)) #2 /home/britisht/public_html/2-6-0/external/smarty-4.0.4/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template)) #3 /home/britisht/public_html/2-6-0/external/smarty-4.0.4/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1) #4 /home/britisht/public_html/2-6-0/external/smarty-4.0.4/l in /home/britisht/public_html/2-6-0/tmp/views_c/bootstrap5_ad47f2bd1a9754e53a9de9964eac2b94^fe8023efe043a476ed4547b0c57a168b3d7b98dc_0.file.showFullTree_images.tpl.php on line 170

    The categories and products are intact, I can get back to them clicking the text link Manage Products. But when I click on the Shop menu item at the top to go to my shop page with the other text modules I get the problem.

    Screenshot coming by email.

  • peters@slx-online.biz

    peters@slx-online.biz July 17th, 2022 @ 08:23 AM

    If I log out, the shop page displays OK, apart from the Browse Our Store section, which is blank. Another screenshot. As soon as I log in the error is immediately there.

  • peters@slx-online.biz

    peters@slx-online.biz July 17th, 2022 @ 08:27 AM

    Sorry, more symptoms as I explore. If I now click on one of the text links to a category (these are text with link in unordered list, outside of the eCommerce modules) the category opens but no products are listed.

  • peters@slx-online.biz

    peters@slx-online.biz July 17th, 2022 @ 12:02 PM

    I understand. The first time around before it bit me the categories and the products were all displaying as expected. Then it went kinda pear shaped.

  • peters@slx-online.biz

    peters@slx-online.biz July 18th, 2022 @ 08:27 AM

    Hi Dave. I've now finished uploading the replacement package and run the upgrade. So far so good. Peter.

  • peters@slx-online.biz

    peters@slx-online.biz July 18th, 2022 @ 01:09 PM

    One interesting problem Dave. When I'm logged in and go to Shop then select a product category all the products in that category are displayed. If I'm not logged in they don't display. It's as if the product listing is hidden, but I can't find a setting to unhide for non-logged-in users.

    I had another issue not connected to this. We are hosting with UK2. Some users try to access the site without www and http and get a blank screen. The UK2 redirects should switch to https automatically and load the site without www. Today I tackled UK2 about it. They renamed htaccess so I could no longer get into the 2-6-0 site, and told me the problem is in there. I'm no expert on htaccess so wonder why they think the problem is in there. I don't see anything obvious.

  • peters@slx-online.biz

    peters@slx-online.biz July 18th, 2022 @ 01:42 PM

    Sorry, don't follow. Can't see any ecommerce within user management, or vice versa.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Bug Tracker for Exponent CMS

Shared Ticket Bins

People watching this ticket