Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Hi and pointers

dna

New Coder
Hi everyone!

I hope someone could point me to a solution with dropdown lists coding- links to forum treats welcome.
The issue is that my website which is connected (API) has to have a different products under one dropdown list so API recognises that. Then those products come in different finishes and amounts to choose from. Unfortunately, they (developer) claims unable solve the issue when a product is unavailable it still shows in the dropdown list, customer picks it and a message pops up that they have to contact me for a bespoke quote. In my opinion it is not very user friendly, personally if I see contact for a quote I leave the site, and it creates extra work for customer services.
I can elaborate on the issue and send links but, but I am not sure if this is a right thread for it.
I would like to know if this is something I can change myself on my site or should I speak to the developer to include in my site (at the moment they claim:unable to do so) or is it really something that won't work and I need to leave the developer alone :)
 
Hello dna!

So, if I understood right, you do not want unavaillable products to be displayed in the dropdown menu? Is your server using PHP? Are the informations about the products in a database? It does not sound hard to do.
 
Hello dna!

So, if I understood right, you do not want unavaillable products to be displayed in the dropdown menu? Is your server using PHP? Are the informations about the products in a database? It does not sound hard to do.
Hi LTomy, thanks for your reply
Exact opposite, at the moment unavailable products do display. It is a bit complicated as you pick a thickness of business card, then you pick a finish, single or double side, then the amount.
This is all connected via API with my dropshipper and the issue is that there are a few thicknesses to choose from, but not all of them are available in all finishes and amounts, hence the message to contact me instead.
But my stand is that unavailable options shouldn't show in the drop down list. They said its down to the company which API is connected to, but API company says it the developer.
I think I got to the point the developer is annoyed with me, my argument is that it should be a simple coding change but I am not sure how to do it, so I cannot say where the improvement has to be made. I will ask whether they use PHP, but not sure they will be happy to answer lol.
Hope that makes sense


https://yourprintcompany.co.uk/products/standard-business-cards/ this is the link to a template the developer offers, it shows exact issue I am experiencing
My site isn't live as such but I am happy to provide the link if anyone is interested to see but they are all based on the template above, we are only allowed to change layouts, colours, add products etc
It was all meant to be easy... haha, thanks again
 
Well... :thinking:
It is kind of hard to help considering you are not the actual developper! Have you any experience in coding?

So, there are many options, but not all combinaisons are possible, right? If so, that is not really hard to do using Javascript (Which is already used in the page you linked).

It takes some work, but it should be trivial to do (Filter the options with Javascript on the web navigator of the client, so only the valid options are displayed, and verify it on the server with PHP (Or any server-side language), when the 'purchase' is sent, so a 'hacker' can not send invalid combinaisons purposely).
 
Last edited:
Well... :thinking:
It is kind of hard to help considering you are not the actual developper! Have you any experience in coding?

So, there are many options, but not all combinaisons are possible, right? If so, that is not really hard to do using Javascript (Which is already used in the page you linked).

It takes some work, but it should be trivial to do (Filter the options with Javascript on the web navigator of the client, so only the valid options are displayed, and verify it on the server with PHP (Or any server-side language), when the 'purchase' is sent, so a 'hacker' can not send invalid combinaisons purposely).
Thank you, I agree with you. I think they are just lazy..they have created a template but not much have been done to improve it.
But now you have given me bullets and I can fire back, as my coding knowledge is basic, I couldn't come back with anything specifically, now I can. So thank you very much again :)
 
Thank you, I agree with you. I think they are just lazy..they have created a template but not much have been done to improve it.
But now you have given me bullets and I can fire back, as my coding knowledge is basic, I couldn't come back with anything specifically, now I can. So thank you very much again :)
You are welcome ;)
Yeah, this is probably that.
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom